Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

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

(2) ShareShare
ReportReport
Posted on by
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.
  • Suggested answer
    Waed Ayyad Profile Picture
    3,252 on at
    Put a newly created or modified sales order on hold via code
    Hi,
     
     Let us simplify the requirement. You can start by adding new method on the have the logic (to check if the order should be put on hold or not). Your new method will return Boolean.


    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
    ​​​​​​​

     
  • Waed Ayyad Profile Picture
    3,252 on at
    Put a newly created or modified sales order on hold via code
    Hi
     
     

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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Jahanvi Profile Picture

Jahanvi 34

#2
PJ JohnPaul Profile Picture

PJ JohnPaul 5

#3
SudhanshuMSID Profile Picture

SudhanshuMSID 1

Overall leaderboard

Product updates

Dynamics 365 release plans