Maybe this will give you a hint to resolve your issue
By default, Sales Orders created via Dataverse integration are automatically Released, as part of Microsoft’s standard CRM-to-BC sync behavior.
Subscribing to Codeunit::"Release Sales Document"
events like 'OnCodeOnBeforeSetStatusReleased'
won’t stop the release — because the integration likely calls the release logic after the record is created, not through standard UI triggers.
Instead of blocking the release, try one of the following:
Subscribe to the integration event that runs after the order is created, and immediately call SetStatusOpen
on the order record.
Or use a custom batch job or event subscriber that detects newly created released orders (e.g., via User ID
or Integration ID
) and switches them back to Open.
There’s no config setting to prevent this — you’ll need a small customization to override the default behavior.
If this helped you, please check the box "Does this answer your question?"
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1