Notifications
Announcements
No record found.
Hi Team,
We are currently working on integrating the Pivot application with the Business Central ERP. However, we’re encountering a challenge while posting purchase invoices through the standard Business Central API. Below is a summary of the scenario and the issue:
In the Pivot application, invoices (either expense or procurement-related) are created and pushed to Business Central via API for direct posting
The item involved in the invoice (e.g., Item B) is entered in Pivot based on the actual transaction.
However, during posting in Business Central, we’re facing dimension-related issues
Item Card (Business Central):
Global Dimension 1: Department = Item A, with Value Posting = Same Code
Global Dimension 2: Business Segment = GAS, with Value Posting = Same Code
Shortcut Dimension 3: Cost Type = Travel
Default Dimension Priority Order:
Item
G/L Account
Vendo
When Pivot sends an invoice related to Item B, it includes Department = Item B as Global Dimension 1 in the API payload. Despite this:
Shortcut Dimensions 3 and 4 are updated correctly as per the Pivot input.
But Global Dimensions 1 and 2 are not updated in Business Central; the system retains the default values from the Item Card instead.
Could you please review and advise:
Is there any configuration missing on the Business Central side?
Or is there a need to modify the API payload to allow overriding dimensions that have "Same Code" set?
Hi, good day I hope this can help you, and give you some hints.
Troubleshoot and correct dimensions - Business Central | Microsoft Learn
Temporarily change the "Value Posting" value to "Blank" or "Code Mandatory" and try again.
Best Regards Gerardo
Hi Vinayak,
The issue stems from how BC enforces dimension values when Value Posting = Same Code is set on the item card. This setting tells BC to always use the dimension value defined on the item, and it will ignore any incoming override — including those passed via API.
Here’s how to approach it:
Why Your API Payload Is Ignored
Value Posting = Same Code
Options to Resolve
Option 1: Change Value Posting to “Blank” or “Optional”
Value Posting
Blank
Optional
Option 2: Use a Custom API Page
ValidateShortcutDimCode
SetGlobalDimCode
Option 3: Post via Journal Instead of Purchase Invoice API
Option 4: Use Power Automate or Middleware
Helpful References: Working with Dimensions – Microsoft Learn Value Posting Behavior – Dynamics 365 Lab Custom API Page for Dimensions – GitHub Sample If you find this helpful, feel free to mark this as the suggested or verified answer. Cheers Jeffrey
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,143
Jainam M. Kothari 1,694 Super User 2025 Season 2
YUN ZHU 1,067 Super User 2025 Season 2