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
  • Suggested answer
    YUN ZHU Profile Picture
    85,670 Super User 2025 Season 1 on at
    How can I prevent newly integrated Sales Orders from being Released initially in BC?
    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
  • CU22050608-0 Profile Picture
    33 on at
    How can I prevent newly integrated Sales Orders from being Released initially in BC?
    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
    Khushbu Rajvi. Profile Picture
    17,504 Super User 2025 Season 1 on at
    How can I prevent newly integrated Sales Orders from being Released initially in BC?
  • Suggested answer
    Sohail Ahmed Profile Picture
    4,747 on at
    How can I prevent newly integrated Sales Orders from being Released initially in BC?

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

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans