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
          Configure Access Rights to Save Display Record Changes

          Configure Access Rights to Save Display Record Changes

          When a sales rep saves a modified display record, to ensure that the changes made to the Display object are persisted and updated in the database, in Visual Studio Code based Modeler, mark the Display object as dirty and define the edit and access rights of the Display object.

          Required Editions

          Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled
          User Permissions Needed
          To define access rights for saving display records in VS Code Modeler Customizer, Developer
          1. In Visual Studio (VS) Code based Modeler, add this snippet to the customization area of the method in BoMyDisplay.AfterCreateAsync.bl.js.
            me.setObjectStatus(STATE.NEW | STATE.DIRTY);
            me.mySetEARights();
          2. Save your changes.
          3. To synchronize the Type attribute and make it available in the CG Cloud offline mobile app, add Type to the Mobility relevant field set.
          4. To check for validation errors, build the contracts by running this command: sf modeler workspace build
           
          Loading
          Salesforce Help | Article