How to avoid pop up for recalculating shipment dates while creating sales orders through code.

Hello,

when i create a sales order through code, i receive a pop up window where it asks me ’ Lead time changed, recalculate ship and receipt dates ?’

Now i need to avoid this confirmation screen as i am creating the sales order through the code.

I checked the parameter setting in 'A.R > Setup > Parameters > Shipment tab > Delivery control ’ where delivery date control is set to ‘None’.

Please let me know if i need to verify any other parameter setting.

Thanks,

RNK

Hi Rajesh,

Welcome to the Dynamics User Group!

Check where the prompt is being called from using the debugger and setting the HideValidationDialog variable by calling the SetHideValidationDialog function may stop this - otherwise you will need to code in a similar fashion.