Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Put a newly created or...
Finance forum
Under review by Community Managers

Under review

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

Put a newly created or modified sales order on hold via code

Posted on by 5
Hi ,
 
I'm new to D365 F&O x++ development & customization.
I have a requirement below:
 
Need to put newly created sales order or modified sales order on hold .
1. If order receipt date is changed or new sales line is added by clicking on save the logic to put order on hold will run.
2. Logic will be decided via lead time & requested receipt date
          If requested receipt date - order created date < lead time then put order on hold otherwise order can be processed further like confirmation & packing slip.
Lead time setup will be defied separately based on customer group & released product via extension.
 
Can you please tell me where i can write the x++ logic put order on hold & the some x++ code sample if possible ?
 
Thank you.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,451 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,353 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans