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.