Skip to main content

Notifications

Announcements

No record found.

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

How to update Qty to assign field when we add charge as line item

Posted on by 19
I need to update Qty to assign field for freight details added to the PO from custom API? Is there any way to do it. I tried to expose the field from both Purchase Line and Item Charge Assignment (Purch) table and edit them but it doesn't have anything that refers to a particular line so can u please suggest on how we can create custom API to update Quantity to assign for each line item.

Also follow up question is that is there any API that performs this /suggest charge assignment/ scenario where we can divide the quantity based on weight amount or equally. I need to do this via Custom API.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    How to update Qty to assign field when we add charge as line item
    Hi, If you want to do Item Charge Assignment in the API, it will be more complicated than imagined. The standard page only collects data after clicking the button on the Purchase Line, so you cannot use the standard page directly.
    You need to recreate a new page according to the standard logic mentioned above, and then process it on the new page.
    Hope this gives you some hints.
     
    Thanks.
    ZHU

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans