web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Copy Sales Order New Field Value in Return Order

(0) ShareShare
ReportReport
Posted on by 108

Hi,

I have added a new fields in Salestable and Salesline and some of it is set mandatory. Everything works fine in creating new sales order but when a return order is created with type replacement, The system is asking for the value of the new fields I have added in sales order. My question is in which class in AOT do I have to put the code to also replicate the value of the new field I have added in the new Return Order. Thanks.

*This post is locked for comments

I have the same question (0)
  • Von Profile Picture
    108 on at
    RE: Copy Sales Order New Field Value in Return Order

    Thanks ievgen. tags corrected already.

  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: Copy Sales Order New Field Value in Return Order

    Hi Von,

    Could you correct tags on your initial question ?

    Regarding your question the easiest way to find this out is to put break point in salesLine.insert() method and create orders from UI to get idea what triggers insert.

    You probably can start from adding code to salesLine.createReplacement() and salesTable.copyRMALines()

  • Von Profile Picture
    108 on at
    RE: Copy Sales Order New Field Value in Return Order

    Hi ievgen,

    I'm using AX 2012 R3,

    I want to pass the value to both return order and replacement order.

  • Mea_ Profile Picture
    60,284 on at
    RE: Copy Sales Order New Field Value in Return Order

    Hi Von,

    First of all what version are you referring to ? Current version is ax 7 so are you using it or 2012 ?

    Could you please elaborate your question, do you want to pass new fields to replacement order or to return order ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans