27. September 2011 09:59
// CREATE
var contact = CrmRestKit.Create('Contact', { FirstName: 'Foo', LastName: 'Bar' });
CrmRestKit.Create('atx_account_contact', { accountid:
{ __metadata: { type: "Microsoft.Crm.Sdk.Data.Services.EntityReference" },
Id: '{xxxxxxxx}',
LogicalName: 'Account'
},
contactid:
{ __metadata: { type: "Microsoft.Crm.Sdk.Data.Services.EntityReference" },
Id: '{yyyyyyyyyy}'
LogicalName: 'Contact'
}
});
29. September 2011 13:39