Posts

Salesforce Fact #994 | Setting default value of Sobject Select inputs in Omniscript

Image
If we are using the Select input of Sobject source in Omniscript, there is no point & click option to configure the default value. We can make use of the 'Edit Properties As JSON' option to set the default value. In this example, we are selecting an account from the typeahead block in the previous step and in the current step, setting the default value of the Active picklist in the JSON as:  "defaultValue": "%AccountInfo:SearchAccount-Block:Active__c%" Attached are the screenshots.

Salesforce Fact #993 | Type Ahead block with Turbo Extract

Data Raptor Turbo extract adds a parent node in the response JSON. So, while using it with Type Ahead block the parent node needs to be specified in the Response JSON Path to get the desired output. Reference:  https://help.salesforce.com/s/articleView?id=000394510&type=1

Salesforce Fact #992 | Enable Flexcard Designer

If you are not able to access the Flexcard Designer, check if you have access to the Vlocity Card Designer lightning record page. Reference:  https://help.salesforce.com/s/articleView?id=000390893&type=1

Salesforce Fact #991 | Integration Procedure: get current user id

In order to get the current user id in IP, we can use a Set Values element and populate the value:  =%$Vlocity.UserId% in one attribute. And in subsequent elements we can get the value similar to the below syntax: %SetCurrentUserId:currentUserId% here  SetCurrentUserId is the Set Values element name and  currentUserId is the attribute name.

Salesforce Fact #990 | DataRaptor: Fetch accounts without any related contacts

Image
Here's one approach to find out the account names with no related contacts using DataRaptor Extract. Attached are the screenshots.

Salesforce Fact #989 | New delete files permission

Image
There's a new app permission 'Delete Salesforce Files' has been introduced in Spring'26. It can be assigned using a profile or permission set. This allows the users to delete accessible files irrespective of the ownership. The app permission can be checked in LWC as well similar to other app permissions. Attached is the screenshot. Reference:  https://help.salesforce.com/s/articleView?id=release-notes.rn_experiences_files_delete_files.htm&release=260&type=5 However, there seems to be one issue; With this permission, a user can delete a file with only view access to the file. Hope Salesforce will put further restriction to fix this in upcoming releases.

Salesforce Fact #988 | Disable radio button on screen navigate

Image
Suppose we have a requirement that a radio button needs to be selected by the user in the current screen. Once the user moves previous/next from the current screen, it should get disabled. We can implement this using screen action and bit of condition logic. We can add condition to make sure the screen action autolaunched flow is called only once. And we can create a formula resource to check the InProgress and IsSuccess property of the action button which is used in the disabled attribute of the radio buttons. Attached are the screenshots.