Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Understanding plugin transactions

(0) ShareShare
ReportReport
Posted on by 8
Hello,
I'd like to understand how transaction are being committed when using plugins.
I understand there are 4 main operations -
  1.  Pre Validation - outside transaction
  2.  Pre Operation - inside transaction
  3.  Post Operation (sync) - inside transaction
  4.  Post Operation (async) - outside transaction
But what will happen in the following scenario : 
  • Entity A has a step registered in Post Operation (sync) that updates Entity B.
  • Entity B has a step registered in Post Operation (async)
As I understand these two steps will be executed in the same transaction, even though Entity B's step is registered as async. 
Does that mean that if an error occurs in Entity B's async step the entire transaction is rolled back? including changes made by Entity A's sync step?
 
Also, what if Entity B has a Pre Validation step as well? Will it be skipped when triggered by Entity A's sync step? 
 
Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans