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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

XMLPort - Purchase invoice with shortcut dimension 3 and 4

(2) ShareShare
ReportReport
Posted on by 24
I have an xmlport for purchase invoices that works well, but we need to add shortcut dimension 3 and 4 to it, but those fields don't exist on the purchase line, only in the dimension set ID. How can I go about handling this? is there a way to look up the dimension set ID given the values of dimensions 1-4, or someway to populate that?
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    6,195 on at
    Hello,
     
    You can’t write Shortcut Dimensions 3/4 directly on purchase lines. You must build the Dimension Set ID instead. In your XMLport, read the dimension values, then use Codeunit Dimension Management to add/update those dimensions and get a Dimension Set ID, and assign it to the line. BC will reuse an existing set or create a new one automatically.
     
    Regards, 
    Oussama Sabbouh 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans