Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

AL Program: how to trigger a receive posting of specific purchase line

(1) ShareShare
ReportReport
Posted on by 37

Hi all expert, by AL programming any hint how to to trigger a receive posting of specific purchase line?

Are there a trigger or function to post receive of specific purchase line by provide doc no., line no., qty to receive

Or post receive the whole purchase order but change all other line qty to receive = 0 beforehand?

Any advice welcome and thanks.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: AL Program: how to trigger a receive posting of specific purchase line

    Hi

    I would say that you can safely latch on to this Codeunit Purch-Post event:

    In this event you reset the quantity to be received of the rows you don't want to register, leaving only the one you need valorised.

    pastedimage1666771978902v1.png

    Verify and Check my answer if it satisfied you

    DAniele

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans