Skip to content

v2.3.1

Latest
Compare
Choose a tag to compare
@AleksandrRogov AleksandrRogov released this 26 Jun 14:04

Changes

  • Added support for Content-ID associate and associateSingleValued requests. #190

Example:

dynamicsWebApi.startBatch();

dynamicsWebApi.create({
  contentId: 1,
  collection: "contacts",
  data: {
    firstname: "Khoa",
    lastname: "Test"
  }
});

dynamicsWebApi.create({
  contentId: 2,
  collection: "accounts",
  data: {
    name: "Khoa Corporation"
  }
});

dynamicsWebApi.associate({
  contentId: "$1",
  relatedKey: "$2",
  relationshipName: "arch_Account_Contact_Contact"
});

const results = await dynamicsWebApi.executeBatch();