Table of Contents

Search

  1. Preface
  2. API Reference

global static doPost()

global static doPost()

While making a request to this API, Request object must be set in the HTTP request body.
public class GetMasterRequest { public Set<String> sObjectIds; public String spokeOrgName; public Datetime hubLastChangeTime; public String sObjectType; }

Parameters:

sObjectIds
The list of record IDs for which you want to get master data.
spokeOrgName
The Spoke Org name as defined in the data source on the Hub Org.
hubLastChangeTime
The time when the record was previously synchronizd with the Hub Org. This is used when a real-time callout is made from the Spoke Org user interface.
sObjectType
This must always be set to “Account”.
The method returns success or error response from the Hub Org. If the master beans are found, then the response is a list of GetMasterResponse Object for each input record with 200 as response status code.
public class GetMasterResponse { public String spokeSObjectId; public Map<String,String> fieldNameValuePair; public String responseMsg; public DateTime lastUpdateTimeFromHub; public String errorMsg;

Parameters:

spokeSObjectId
Spoke Org record ID.
fieldNameValuePair
Map that contains the list of enriched fields as keys and their respective values.
responseMsg
Contains the response status. The following are the response codes:
  • CMDM_RESPONSE_MB_FOUND = 1, if MB is found for the Spoke's external bean.
  • CMDM_RESPONSE_MB_NOT_FOUND= '2', if MB is not found, this can be because the external bean for the spoke is not created by Informatica Cloud Services or de-duplication Jobs are not run yet.
  • CMDM_RESPONSE_MB_NO_UPDATE_FOUND = '3', if there has been not update found on the MB since the last update time.
  • CMDM_RESPONSE_MB_DELETED= '4', if the master bean was existing and later found to be deleted on the Hub Org.
lastUpdateTimeFromHub
Provides the last update time stamp of the master bean.

0 COMMENTS

We’d like to hear from you!