Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Update Company Order Lines

Posted on by 75

Hi,

in the purchase order, if I change the company in the header of the order
and if I confirm the update of the order lines, the company will be modified in the lines
where can I find the code that updates the lines?

Regards

update-company.PNG

*This post is locked for comments

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Update Company Order Lines

    You want to disable standard prompt dialog on particular field and write your own logic for update?

  • DJosef Profile Picture
    DJosef 75 on at
    RE: Update Company Order Lines

    Hi Rustem,

    yes there is a customization

    but in general how can I authorize the update of a field and not allow the update of another field?

    for example: after changing the delivery terms and the site on the header, I want to update the delivery terms in the lines unless the quantity is greater than 10000

    Thanks

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Update Company Order Lines

    Hi DJosef!

    Is there any customization of this form? I can't find the company field.

    Try to set breakpoint to update() method of PurchTable2LineUpdate class and dibug it.

  • DJosef Profile Picture
    DJosef 75 on at
    RE: Update Company Order Lines

    Hi Rustem,

    the PurchTable2LineUpdate class allows to update information from the header to the lines

    information can be company, site, or other

    how can i know that the company field will be updated ?

    Regards

  • DJosef Profile Picture
    DJosef 75 on at
    RE: Update Company Order Lines

    Thanks Rustem

  • Verified answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Update Company Order Lines

    Hi DJosef!

    Check the PurchTable2LineUpdate 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans