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

Announcements

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 automatically test field identifier changes between two different extension version in D365BC?

(0) ShareShare
ReportReport
Posted on by
Hi Expert,
 
We have an extension which version is 1.0 and have a table test:
 
table 1 test
{
field(1; ItemID; code[20])         { DataClassification = CustomerContent;         }
}
 
Now, we develop an extension for version 1.1, and change table test as below (changed field ItemID identifier):
 
table 1 test
{
field(2; ItemID; code[20])         { DataClassification = CustomerContent;         }
}
 
So is there a way that I can test this change between version 1.0 and 1.1 automatically (if field identifier is different, then error out )?
 
Could anyone shed me some light on it?
 
Thanks,
Ming
I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Changing a field number is considered a breaking change and this is not possible on D365BC.

    If you need to do so (from version 1.0 to 1.1 of your extension) you need to:

    1) if you're on SaaS, you need to declare field 1 as obsolete (ObsoleteState = Removed property) and then create field 2

    2) On-premise, you can do as described in point 1 but you can also use SchemaUpdateMode = Recreate and force the modification (with data loss).

  • Community Member Profile Picture
    on at

    Thank you so muck. If I forget to declare field 1 as obsolete and change field Id from 1 to 2, is there a way to automated detect that error in my local?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    If you change a field Id VS Code permits this. Check is controlled during publishing.

  • Community Member Profile Picture
    on at

    Thank you, is it possible let VS code does't allow this field change?

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 June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 695 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 422 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans