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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get the Financial 'To dimension' from Transfer journal in X++

(1) ShareShare
ReportReport
Posted on by 333
Hi,
 
 
 
I want to know how to get the 'To dimension' data from transfer journal via x++,
Does anyone have any ideas on how to do this?
I have the same question (0)
  • Martin Dráb Profile Picture
    239,451 Most Valuable Professional on at
    What data do you want to get? The value of a particular dimension? A map of dimension attributes and their values?
     
    It may be good to start by telling us what you're trying to achieve from business point of view.
  • Saran S Profile Picture
    333 on at
    Thanks for the reply Martin,

    I try to create the Project item journal from Transfer journal, if the Transfer journal is Posted.
    For this process, I need the 'To dimension' data from that Transfer journal.
  • Suggested answer
    Martin Dráb Profile Picture
    239,451 Most Valuable Professional on at
    If you look into InventJournalTranfer form, you'll see that DimensionEntryControlTo is bound to TmpDimension data source. Go there and notice linkActive() method; it contains code populating DimensionDefault field at runtime. The key piece there is the call of toDimensionDefault() method on InventJournalTrans table. The same method is used in actual postings, not just to display values in this form.
  • Saran S Profile Picture
    333 on at
    Yes I noticed that,
    inside the toDimensionDefault() method, I find the InventSite::changeDimension() method, so I tried the below code
     
    inventJournalTrans.DefaultDimension = InventSite::changeDimension(inventJournalTrans.DefaultDimension, InventDim::find(inventJournalTrans.ToInventDimId).InventSiteId);
     
    is this correct?
  • Martin Dráb Profile Picture
    239,451 Most Valuable Professional on at
    Honestly, I don't see any relation between your code and your requirement.
     
    Your code is trying to update a single dimension value (Site) from the inventory dimension, while you're talking about getting all dimensions for creation of a project item journal.
  • Saran S Profile Picture
    333 on at
    ok,
     
    inventJournalTransCreate.DefaultDimension = inventJournalTransSelect.toDimensionDefault(inventJournalTransSelect.inventJournalTable(), InventDim::find(inventJournalTransSelect.ToInventDimId));
     
    is this correct?
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 620

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 521 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans