Loading
Feature degradation | Gmail Email delivery failureRead 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
          hasAllRolesIn(roles)

          hasAllRolesIn(roles)

          This function accepts either comma-separated strings or an array of strings. It returns true if you assign all the roles to the user.

          Required Editions

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

          Parameters

          These formats are allowed for input parameter roles:

          • 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