Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Put a newly created or...
Finance forum

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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans