In the Consumer Goods Cloud offline mobile app, create a business logic method to
display the button that launches the third-party app. This method ensures that sales reps can view
the button on the UI when they log in to the app.
Required Editions
Available in: Professional, Enterprise, and Unlimited Editions
that have Consumer Goods Cloud enabled
User Permissions Needed
To configure button visibility settings:
CG Cloud Developer, Admin
To determine button visibility, add a business logic method to the MyDisplay module. In VS
Code terminal, run sf mdl add and enter these
details.
? Select the resource you want to add: businesslogic
? Specify a name for the business logic: HasLuCustomer
? Select the module to which the HasLuCustomer business logic is added: MyDisplay
? Select a suitable option for the HasLuCustomer business logic: method
? Select the reference object to add the business logic method: BoMyDisplays
Add the snippet to the jsDoc tags in the new business logic method. * @returns visible
In the customization range, enter the code.
var visible = me.getLuCustomer().getPKey() !=' ' ? true : false;
Save your changes.
To check for validation errors, build your contracts. Run sf
mdl 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.