Categories
lwc Salesforce

Expand and collapse single Lightning web component Accordion

How to collapse and expand LWC accordion when an only a single accordion section is available love your work Problem- We need to have one account accordion which can be expanded and collapsed by the user but by default its launched as collapsed. Solution:-  Link for the working code Example LWC Played with properties of […]

Categories
lwc Salesforce Vlocity

Using Custom LWC inside Vlocity Omniscript

Create a custom Radio Group inside vlocity Omniscript NEVER GIVE UP Problem- Due to omniscript limitations, it happens you need to use custom LWC to achieve the requirements. Solution:-  Get the custom LWC from the salesforce Lightning web components (in our example we are using radio group) <template> <lightning-radio-group name=”radioGroup” label=”Radio Group” options={options} value={value} type=”radio”></lightning-radio-group> […]

Categories
Apex lwc Salesforce

Issue with Apex replay debugger on running debug logs in VS Code

The log must be generated with log categories Apex code at the FINEST level and Visualforce at the FINER level.? THINK OOTB Problem- When running apex replay debugger, in VSCode on a debug file it generates error message. Solution:-  Follow what error is saying and update the first line of log file, before running the […]

Categories
lwc Salesforce

How to enable debug mode for Lightning web components ?

How to enable debug mode for Lightning web components? DEBUGGING IS SEXY Problem- In the developer environment I want to debug my LWC but it’s coming as minified when rendered in browser sources and also shows proxy data? Setup > debug mode > select the one under lightning  components Edit your user > enable “Debug […]

Categories
Salesforce Vlocity

Dataraptor not returning output as an list of array?

How to enable that Dataraptor return array of objects even when only 1 object is returned Quality work comes with price Problem- Had an issue, where omniscript using dataratpor was breaking as the data returned was not in form of an array. This problem happens when dataraptor returns only a single node to data, its […]

Categories
Apex Salesforce

How to compare values in Custom Metadata with given object in Apex

How to compare values in Custom Metadata with a given object field in Apex learn more share more Problem- Admin wants some value as configurable and set in custom metadata, now as a developer, we want to perform an action based on the matching of this mdt with values in say platform field on the […]

Categories
Salesforce Vlocity

Handy tips while working with Salesforce Vlocity Dataraptors

Smart way of working with Salesforce Vlocity Dataraptors STart small but think big Problem- How to improve productivity while working with Dataraptors 1)Always start with creating new version of the dataraptor, it avoids overwriting the existing stable changes, or you can always fall back to previous versions in case your changes don’t work as expected. […]

Categories
Salesforce Vlocity

Vlocity Omniscript reverts back to initial step on reloading?

How to show prompt in omniscript when the user is trying to refresh the step in omniscript? Yes that is possible Problem- As per the current version of OS, when the user refreshes the current page (step in OS terms), it takes user back to the initial step, without saving the changes. To avoid the […]

Categories
Salesforce Vlocity

Applying field level security in vlocity Dataraptor

How to enable FLS in vlocity Dataraptor Yes that is possible Problem- if not enabled irrespective of a user profile, in the dataraptor call, it won’t respect the FLS for a given field. Vlocity > Vlocity Dataraptor Designer > open the required dataraptor Go to the options tab > Check Field Level Security

Categories
Apex Salesforce

Using Prettier with Apex Salesforce in VSCode

How to configure Prettier to work with Apex Salesforce code in VSCode Yes that is possible Prerequisite:- VSCode is fully configured to work with Salesforce Select the existing Salesforce Project. At the root level run the below command in the Terminal npm init //this will create package.json file to track npm dependencies Run the below […]