Posts

Showing posts from January, 2024

Vlocity Facts #31 || Calling Integration Procedure asynchronously from Omniscripts and Integration Procedures

Image
An asynchronous process is a process or function that executes a task "in the background" without the user having to wait for the task to finish. Omniscripts: By using Non-Blocking, Fire and Forget, Use Future, Use Queueable we can Integration procedure in asynchronous mode. Non-Blocking — Runs asynchronously, and the response is applied to the Ul.  When Invoke Mode is set to non-blocking, elements using default values will not receive the response because the element loads before the response returns. Fire and Forget — Runs asynchronously with no callback to the Ul. A response will still appear in the debug console but will not be applied to the Data JSON. Use Future — Specifies that the Integration Procedure runs asynchronously, as a Salesforce future method, which can return no data to the calling OmniScript. Use Queueable  — Which runs in Async mode, which have higher governor limits. Integration Procedure:  If a Child IP need to be called in Async m...

Vlocity Facts #30 || Environment Variables in DataRaptors and Integration Procedures

Image
To define Default Values and Filter Values, and in Formulas we can use environment variables. Interview question with example. 1. How to pass current user id to DataRaptor or Integration Procedure? We can get userId from omniscript and we can pass it to DataRaptors and Integration Procedures or we can get userId by using Environment variables. Omniscript         W e can pass userId by using merge syntax %userId% to DataRaptor or Integration Procedures. Environment Variable             W e can pass ' $Vlocity.UserId ' to get the user details  2. How to filter dates in DataRaptor using literal dates?                                  By using environment variables we can filter the dates.                                  ...