Loading
Mail Delivery Issue Impacting Email to Salesforce UsersRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          hasOneRoleIn(roles)

          hasOneRoleIn(roles)

          This function accepts either comma-separated strings or an array of strings. It returns true if you assign at least one role to the user.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Parameters

          The allowed formats for the input parameter role are:

          • comma-separated string: "role1, role2, role3, ..., rolen"
          • array of strings: ["role1", "role2", "role3", ..., "rolen"]
          • a valid role object: {"role1": true, "role2": true, "role3": true ...., "rolen": true}
           
          Loading
          Salesforce Help | Article