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...
Unanswered

Location code in Sales Invoice

(0) ShareShare
ReportReport
Posted on by

Hi all,

I'm using Business Central API to create Sales Invoice. I want to add location code to the Sales Invoice using the API but I'm not able to find the field which means location code in the API docs. I was able to add it in the Sales Invoice Lines with the field name 'locationId'

  • JAngle Profile Picture
    161 on at

    The value is more useful at line level though. For example you might have different locations at line level so the header value becomes redundant. It is used to prefill the lines with a preferred location. You can use it for filtering but again it’s not that useful when the lines could be different. The header value is picked up from the customer so maybe set it there and then create your invoice header

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 545 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans