Skip to content

v1.7.7

Choose a tag to compare

@AleksandrRogov AleksandrRogov released this 16 Mar 17:22

Changes:

  • Added new parameter for the "advanced" requests: partitionId. More Info.
  • Added new parameter for the "advanced" requests: queryParams.
    Important! The values in the parameters are NOT being URI encoded! If the encoding is needed, please encode it before calling a function.

Example:

const response = await dynamicsWebApi.retrieveMultipleRequest({
    collection: `accounts`,
    filter: "Microsoft.Dynamics.CRM.In(PropertyName=@p1,PropertyValues=@p2)",
    queryParams: ["@p1='lastname'", '@p2=["Last", "Last\'2"]']
});

// the request will be made to the following url:
// https://<server>?$filter=Microsoft.Dynamics.CRM.In(PropertyName=@p1,PropertyValues=@p2)&@p1=\'lastname\'&@p2=["First", "Last\'s"]