WebAPIToolkit.Web.RetrieveWithParams - AlexanderStruck/WebAPIToolkit GitHub Wiki

Method:

WebAPIToolkit.Web.RetrieveWithParams(entityName, id, Params, 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
  • Params (string): WebAPI-String
  • callback (function): Callback-method if async

Result:

Result of the request if sync (Single object)

Sample:

var RetrievedAccount = WebAPIToolkit.Web.RetrieveWithParams("account, "4c049975-9ba9-e611-80d7-000c29881d41", "$select=name,creditonhold,description,revenue,accountcategorycode,address1_latitude,_primarycontactid_value,_ownerid_value");