Posts

Showing posts from March, 2023

Vlocity Facts #20| Calling an Integration Procedure, DataRaptor from Apex

We can call Integration Procedure from Apex   Code Snippet: String procedureName = 'Type_SubType'; Map <String, Object> ipInput = new Map <String, Object> (); Map <String, Object> ipOutput = new Map <String, Object> (); Map <String, Object> ipOptions = new Map <String, Object> (); /* Populating input map for an Integration Procedure. Follow whatever structure your VIP expects */                     String orderId = '80100000000abcd';                        ipInput.put('orderId', orderId); /* Call the IP via runIntegrationService, and save the output to ipOutput */     ipOutput = (Map <String, Object>) vlocity_cmt.IntegrationProcedureService.runIntegrationService(procedureName, ipInput, ipOptions); System.debug('IP Output: ' + ipOutput); Example: Public class CallAccountContactDetails { Public ...

Vlocity Facts #19| How to create records for specific recordtype by using DataRaptor or Query function in formula tab

Image
In last Post i have discussed about - How to Fetch RecordType id, DeveloperName by using DataRaptor or Query function in formula tab  Now I will discuss. - How to create a record for specific recordtype into the object. There are two ways to create a record for specific recordtype by using DataRapotr Load. 1. We can write query on recordtype by using formula tab in DataRaptor. For example, In the below screenshot by using Query function I'm getting recordtype id from formula result path we can use that while mapping in the fields tab. [INPUT JSON PATH -> DOMAIN OBJECT FIELD] 2. By using Lookup check box in fields tab.   a. Select recordtypeid from output data type.   b.   In the field mapping, Check " Is Lookup "   to enable lookup in field mapping.    c.  Select the object to lookup.    d.  Select the lookup field. The lookup record will be matched against this field. e.  Select Lookup requested field. When this d...