Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Implementing the date value in sales order form

(1) ShareShare
ReportReport
Posted on by 4
I have a date typed field named Expiry Date available in the Item setup ( Customized ). I want to use this date when that particular item is used in the Sales order. I have the same field in Sales order as well but the date value is not updated. Please provide your thoughts. Thanks in advance.

Thanks,
C4u
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,111 Super User 2025 Season 1 on at
    Implementing the date value in sales order form
    Hi C4u,
     
    Did you already add x++ code to copy the value from the item to the order line, or are you seeking for help how to achieve that?
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 7,257 Super User 2025 Season 1 on at
    Implementing the date value in sales order form
    Hi,
    Can you share the code? You can do it by adding code to the modified field of Item Id to set the date to be the same as the date of Item setup. If you can create the sales order from other places rather than the Salestable form, you should add the same code in the code that sets the sales line.
  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    Implementing the date value in sales order form
    Hi, Can you share code written for it. If code is not written then add in ModifiedField method of SalesLine table on ItemId field in extension class.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans