Loading
Salesforce now sends email only from verified domains. Read 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
          FrameworkUser

          FrameworkUser

          When you select the FrameworkUser for the BoUser base class, the business object has access to four functions. You can use these functions for edit and access rights based on user roles. The FrameworkUser class is only available via the class from which it’s extended, that is, BoUser.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.
          • setRoles(roles)
          • hasRole(role)
          • hasOneRoleIn(roles)
          • hasAllRolesIn(roles)

          Related topics

          • Role-based E&A rights
          • 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.
          • 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.
          • hasRole(role)
            This function accepts a role name string and checks whether it is among the known roles of the current application user.
          • setRoles(roles)
            Use this function to store the role names that are available in the input parameter of the framework user object.
           
          Loading
          Salesforce Help | Article