Notifications
Announcements
No record found.
Hi guys,
Can anyone please guide me
how to update "financial dimension" from 000 to 164 in released item form by code(job)
ZA02
*This post is locked for comments
There are plenty of examples available online, have a look at the following:
[View:https://msdax.wordpress.com/2012/10/08/job-to-update-customer-financal-dimension-in-dynamics-ax-2012/:750:50]
Instead of CustTable you would be updating InventTable.DefaultDimension.
Hi Vilmos,
Thanks for your reply..
I want to change the "financial dimension" in item release form. I will check the example.
You can use following code:
InventTable inventTable;
DimensionAttributeValueSetStorage dimStorage;
DimensionAttribute dimAttrOpDiv;
DimensionAttributeValue dimAttributeValue;
ttsBegin;
select firstonly forUpdate inventTable where itemid ="ABC"
{
dimStorage = DimensionAttributeValueSetStorage::find(inventTable.DefaultDimension);
dimAttrOpDiv = DimensionAttribute::findByName("Operating_Division");
dimAttributeValue = DimensionAttributeValue::findByDimensionAttributeAndValue(dimAttrOpDiv, 'NewValue', true, true);
dimStorage.addItem(dimAttributeValue);
inventTable.DefaultDimension = dimStorage.save();
inventTable.doUpdate();
}
ttsCommit;
Hi Sukrut,
I want to change the "financial dimension" in all items in released product form.
this code will help to update all items financial dimension in released product form?
Yes. Released product form has inventtable as datasource(I believe you know how release product works) . Please Test it for single item before you run for all released product just to make sure its updating properly in your dev environment.
I have selected one item and i want to update "financial dimension" dimension value = 164.
can u please explain what is the purpose of this line?
Which value you want to update ? 164 belongs to which dimension attribute ? like (Division , department ,Purpose)
Hi Sukrut Parab,
Do you have solution or any script for upload financial dimensions (Business unit, department and Cost center) for Fixed Assets. Please advise me, Thank you in advance.
PrasitP.
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.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2