Loading
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
          setRoles(roles)

          setRoles(roles)

          Use this function to store the role names that are available in the input parameter of the framework user object.

          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}
          Warning
          Warning This method is customizable. However, customization isn’t recommended and is not supported.
           
          Loading
          Salesforce Help | Article