Hello everyone, I am migrating a class from AX to D365FO, a line of code that is the following:
dimensionAttributeValue = DimensionAttributeValue::findByDimensionAttributeAndEntityInst(DimensionAttribute::getMainAccountDimensionAttribute(), mainAccount.RecId, true, true);
I find that the DImensionAttribute::getMainAccountDimensionAttribute method is deprecated in D365FO. Do you know what alternative I can use to replace this method?
From already thank you very much.
Hi Angel,
Can you see if the below code will suit for you
DimensionAttributeDelegates::callGetWellKnownDimensionAttribute(DimensionAttributeType::MainAccount);
The method above will return the RecId of DimensionAttribute table Main account record as the parameter sent is Main Account.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156