WebAPIToolkit.Web.Retrieve - AlexanderStruck/WebAPIToolkit GitHub Wiki
Method:
WebAPIToolkit.Web.Retrieve (entityName, id, columnSet, callback)
Description:
Retrieves for the given entity a record with the given id and the given columns
Parameters:
- entityName (string): Logicalname of the entity
- id (GUID): GUID of the record
- columnSet (array of strings): Array of columns to be retrieved
- callback (function): Callback-method if async
Result:
Result of the request if sync (Single object)
Sample:
var RetrievedAccount = WebAPIToolkit.Web.Retrieve("account", "4c049975-9ba9-e611-80d7-000c29881d41", ["name", "creditonhold", "description", "revenue", "accountcategorycode", "address1_latitude", "_primarycontactid_value", "_ownerid_value"]);