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

Business Central AL – Automatically Populate Tender No. from Agreement

(0) ShareShare
ReportReport
Posted on by 182

I have a custom Agreement table with an Agreement No. and a Dimension Value.

On the Sales Order Header, I added an Agreement No. field. The Tender No. field is also located in the Sales Order Header and represents Shortcut Dimension 5.

My requirement is simple:

When the user selects an Agreement No., I want Business Central to automatically take the Dimension Value from that Agreement and populate the Tender No. field in the Sales Order Header.

For example:

Agreement No. 1 → Dimension Value = 11/200/2025

After selecting Agreement No. 1:

Tender No. = 11/200/2025

The Dimension Value already exists in the system.

However, every attempt to update Shortcut Dimension 5 causes this error:

"We can't save your changes right now, because a record in table 'Sales Header' is being updated in a transaction done by another session."

I also tested without the dimension code, and the transaction error still occurred when selecting the Agreement.

Could you please provide the correct AL implementation/code for this scenario, including the correct event or trigger to use, without causing a Sales Header transaction/locking conflict?

 
 
 

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 755 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 413 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 387 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans