Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative to use ExecuteTransactionRequest? #108

Open
priyanksster opened this issue May 16, 2022 · 2 comments
Open

Alternative to use ExecuteTransactionRequest? #108

priyanksster opened this issue May 16, 2022 · 2 comments

Comments

@priyanksster
Copy link

priyanksster commented May 16, 2022

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 priyanksster changed the title Alternative to use ExecuteMultipleRequest,ExecuteTransactionRequest? Alternative to use ExecuteTransactionRequest? May 16, 2022
@davidyack
Copy link
Owner

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

@priyanksster
Copy link
Author

priyanksster commented May 17, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants