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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

update financial dimension in released item form

(0) ShareShare
ReportReport
Posted on by 115

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

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    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.

  • baduru hameed Profile Picture
    115 on at

    Hi Vilmos,

    Thanks for your reply..

    I want to change the "financial dimension" in item release form. I will check the example.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    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;

  • baduru hameed Profile Picture
    115 on at

    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?

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    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.

  • baduru hameed Profile Picture
    115 on at

    I have selected one item and i want to update "financial dimension" dimension value = 164.

    dimAttrOpDiv = DimensionAttribute::findByName("Operating_Division");

    can u please explain what is the purpose of this line?

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    Which value you want to update ?  164 belongs to which dimension attribute ? like (Division , department ,Purpose)

  • PrasitP. Profile Picture
    152 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans