Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
In Dynamics 365 for Finance and Operations virtual companies are deprecated and could not be upgraded according to the documentation that just state this fact without proposing a solution.
If we cannot upgrade, then we need to get rid of them. Here are the high level steps how you can de-virtualize a table. Let’s say that we have virtual company V with two companies: A and B. V has only one table collection with one table for simplicity, let’s call it Table1.
DELETE FROM Table1
WHERE DATAAREAID = 'A' or DATAAREAID = ‘B’
static void deVirtualizeTables(Args _args)
DataAreaId virtualDataAreaId = 'V';
container oldCompaniesCon = ['A', 'B'];
void deVirtualizeTable(TableId _tableId)
SysDictTable dictTable = new SysDictTable(_tableId);
Common buffer = dictTable.makeRecord();
while select crossCompany buffer
where buffer.dataAreaId == virtualDataAreaId
for (i = 1; i <= conLen(oldCompaniesCon); i++)
dataAreaId = conPeek(oldCompaniesCon, i);
newBuffer = null;
newBuffer = dictTable.makeRecord();
select firstOnly RecId from virtualDataAreaList;
throw error('Delete a virtual company first!');
DELETE FROM Table1
WEHERE DATAAREAID = 'V'
Now we are ready to run standard data upgrade procedure!
Business Applications communities