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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    101,414 Super User 2026 Season 1 on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,216 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,471 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,369

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans