Posts

Vlocity Facts #53 || Reset or Clear the data in Omniscript Screen

Image
In this post we will will discuss  How to Clear data by using set values How to Reset data by using any DataSource Set Values     In omniscript we can use set values to rest the data or populate the data by using the set value element.  Clear the data by using Set Values. I have added 2 text elements and one set value element in omniscript step In Set Value element which I have used in side the omniscript. I have used the First Name and Last Name -> as Element Name and value as null in set value with Label as "Clear" Note: Once you add the set value in omniscript step it will act as a button.                                             When user clicks on the "Clear" button the data which was entered by the user will be cleared and user can enter again. Output:  User Enter the data  After user clicks on clear button [Set Value] Reset th...

Vlocity Facts #52 || Using DataMapper Post as Rest API

Image
In Previous posts we have seen how to Using Integration Procedure as Rest API Using DataMapper Extract as Rest API In this post we will see how to Invoke DataMapper Post as REST API. Data Mapper Post Invocation Using POST You can use the Data Mapper REST API to invoke any type of Data Mapper. To update Salesforce objects using a Data Mapper Load, send a POST request with a JSON payload formatted according to the expected input structure of the Data Mapper Load. To update Salesforce data, issue a POST request with a URL formatted as follows: /services/apexrest/{myOrgNamespace}/v2/DataRaptor/ myOrgNamespace - Namespace prefix In the POST data, specify the following parameters: bundleName  — Name of the Data Mapper Load to invoke objectList  — JSON data to be loaded. Must match the format expected by the Data Mapper Load. filesList   — (Optional) Map of keys to base 64-encoded files. bulkUpload   — TRUE to use batch Apex. Example:  We will create a sample Data Mapp...

Vlocity Facts #51 || Using DataMapper Extract as Rest API

Image
In Previous posts we have seen how to  Using Integration Procedure as Rest API . In this post we will see how to Invoke DataMapper as REST API. Data Mapper Extract Invocation Using GET To retrieve data from Salesforce using a REST call, you need to issue a GET request that triggers a Data Mapper Extract. You can specify the data to be retrieved either by providing the object ID or by defining one or more matching parameters. The response will return the data in JSON format, as defined by the Data Mapper Extract's output configuration. 1. Use an ID to Retrieve Data First we will design a DataMapper which accepts recordId as a Input parameter. Refer this link for creating new  DataMapper Extract To retrieve Salesforce data by specifying the Id, issue a GET request that invokes a Data Mapper Extract, using a URL formatted as follows: /services/apexrest/{myOrgNamespace}/v2/DataRaptor/{DataMapperName}/Id myOrgNamespace - Namespace prefix DataMappername - Name of the DataMapper Extr...

Vlocity Facts #50 || Call a Decision Matrix from an Integration Procedure

Image
In previous post we have used Integration procedure as REST API. In salesforce we use Assignment rules to assign cases to particular queues. In this post we will assign case to queues by using decision matrix. For this example I'm going to use below mentioned json. {      "accountDetails" : {          "FirstName" :  "Community" ,          "LastName" :  "User6" ,          "Email" :  "@gmail.com" ,          "DateOfBirth" :  "1999-12-12" ,          "Premium" :  "Yes" ,          "Partner" :  "Gold"     },      "caseDetails" : {          "Subject" :  "Performance Issue" ,       ...

Vlocity Facts #49 || Using Integration Procedure as Rest API

Image
In Salesforce OmniStudio, we can fetch the data, create records or perform update operations by exposing an Integration Procedure to third-party applications. Instead of relying on Apex classes or methods, the Integration Procedure handles the data processing and record creation, allowing us to seamlessly create, fetch, update records in Salesforce from external systems. In this post will show how to create, update a Account, Case and user records by using Integration Procedure as REST API. Follow these Steps to implement the use case. To create records we need to get all the required the fields. In Integration procedure by using set values we can identify whether we got all required fields to create, update the records. For this example I'm going to use below mentioned json. {      "accountDetails" : {          "FirstName" :  "Community" ,          "LastName" :  "User6" , ...