Xrm.Tools.CRMWebAPI icon indicating copy to clipboard operation
Xrm.Tools.CRMWebAPI copied to clipboard

Alternative to use ExecuteTransactionRequest?

Open priyanksster opened this issue 3 years ago • 2 comments

I am using version 1.0.25 of XRM.Tools.CRMWebAPI with Durable Function using .Net Core 3.1 . Just wondering, does the CRMWebAPI offer any alternative to using ExecuteMultipleRequest or ExecuteTransactionRequest of [Microsoft.Xrm.Sdk.Messages] . My requirement is to create/Update multiple entity records in one transaction so that if one fails , they all will be rolled over. For example. Create 1 record in Entity A. Create 2 records in Related Entity B Update record in Entity C

priyanksster avatar May 16 '22 23:05 priyanksster

If I recall correctly Task<CRMBatchResult> Create(string entityCollection, object[] datalist) does all work in a changeset

davidyack avatar May 17 '22 04:05 davidyack

Hi @davidyack Thanks for your response but Task Create() is used for creating records for a particular entity. How can I use it to create records for multiple related entities?

priyanksster avatar May 17 '22 05:05 priyanksster