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

(1) ShareShare
ReportReport
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 77,351 Super User 2025 Season 1 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

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,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans