Vlocity Facts #51 || Using DataMapper Extract as Rest API
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...