web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How can I prevent newly integrated Sales Orders from being Released initially in BC?

(2) ShareShare
ReportReport
Posted on by 33
Hello All,
 
I have new Sales Orders flowing properly from CRM into BC through the native integration synch. These Orders are showing up in a Released status but the users want them to be in Open status until they process them. 
 
Request: Ensure integrated Orders are in Open status 
 
I subscribed to 
Codeunit::"Release Sales Document", 'OnCodeOnBeforeSetStatusReleased'
 
This did not work when I tested as they still show as Released.
 
Please help! Thanks
I have the same question (0)
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,150 Super User 2025 Season 2 on at

    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.

    Suggested Solution:

    Instead of blocking the release, try one of the following:

    1. Subscribe to the integration event that runs after the order is created, and immediately call SetStatusOpen on the order record.

    2. 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.


    3.  

    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?"

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,904 Super User 2025 Season 2 on at
  • CU22050608-0 Profile Picture
    33 on at
    The issue persists. Yes I am setting the status to Open even after the Order has been created but it keeps reverting to Released after a few seconds by some internal code I cannot determine. When I look at the audit log, I see the continuous toggle back and forth between Open and Released.
    Still need your help here. At my wits end now.
     
    Thanks!
    Tim
  • Suggested answer
    YUN ZHU Profile Picture
    95,754 Super User 2025 Season 2 on at
    As far as I know, this is Microsoft's standard behavior. Orders synchronized to BC are all in Released status. Even if you change it to open, it will be updated during the next synchronization. . . .
    You can submit this idea to Microsoft.
    Missing a feature? Post or vote for ideas on: aka.ms/BCIdeas
     
    Thanks.
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,132

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 665 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans