Use Visual Studio Code based Modeler to set a sales organization for new display
records to ensure that all data is accurate, consistently organized and categorized, making it
easier for sales reps to access and manage information effectively. Sales reps can quickly
locate the relevant display data without having to manually input the sales org each
time.
Required Editions
Available in: Enterprise and Unlimited Editions where Consumer
Goods Cloud is enabled
User Permissions
Needed
To configure sales org in properties in VS Code Modeler
Customizer, Developer
In Visual Studio (VS) Code based Modeler, add this attribute to
DsBoMyDisplay_sf.datasource.xml.
In BoMyDisplay.AfterCreateAsync.bl.js, add this code to set the
sales org property:
var promise=when.resolve(result);
me.setObjectStatus(STATE.NEW | STATE.DIRTY);
me.setSalesOrg(ApplicationContext.get('user').getBoUserSales().getSalesOrg());
me.mySetEARights();
Save your changes.
To check for validation errors, build the contracts by running this command: sf
modeler workspace build
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.