Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

TRANSACTIONREVERSALTRANS erd

Posted on by 60

Hi All,

I see that when I'm reversing a transaction I'm getting an entry in TRANSACTIONREVERSALTRANS table. This table contains a column called reftableid id. From which table I can get the list of these tables and their associated IDs.

Thanks,

Arti

*This post is locked for comments

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: TRANSACTIONREVERSALTRANS erd

    I think I might have answered that question in my earlier post in this discussion :)

  • Arti007 Profile Picture
    Arti007 60 on at
    RE: TRANSACTIONREVERSALTRANS erd

    Thanks Nikolaos, I will try that.

    Just one more confirmation, are these table ids same across the implementations at different customer locations or they change.

    Thanks,

    Archana

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: TRANSACTIONREVERSALTRANS erd

    I think it's easier to write a job (in AOT go to Jobs - right click - New job) with this one line:

    info(tableId2str(123));

    Just replace 123 with any number you want to find out. Then click Play button in the code editor.

    I'm sure you can do that!

  • Arti007 Profile Picture
    Arti007 60 on at
    RE: TRANSACTIONREVERSALTRANS erd

    Thank you, Nikolaos and Satish!!

    As we are just trying out the functional scenarios, we don't have any technical person with us. So please let me know if there is any database table which stores this information.

    Thanks,

    Arti

  • Verified answer
    Satish Panwar Profile Picture
    Satish Panwar 14,645 on at
    RE: TRANSACTIONREVERSALTRANS erd

    Hi Arti,

    Given the architecture MS used, it's possible to use any table that house any transaction that can be reversed. However your environment only will have values where a specific transaction is reversed. E.g. If you don't use Fixed Assets, you may never get "AssetTrans" in your table. Below are some of the tables that you can be stored in RefTableId column, but the list is not complete and may never be complete given the architecture MS has used (RefTableId and RefRecId).

    TaxTrans

    TaxPurchaseTaxTrans

    TaxReportVoucher

    AssetTrans

    CustCollectionLetterJour

    CustCollectionLetterTrans

    CustTrans

    GeneralJournalAccountEntry

    TransactionReversalTrans

    VendTrans

    Exchange rates and the list goes on....

    Suggest that you have folks in your organization run all reversal scenarios and then get those table name using the function Nikolaos mentioned below (tableid2name()).

    Thanks,

    Satish Panwar

    Please help verify answer(s) if they guide you in right direction so other community members can also benefit from your question with verified answer.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: TRANSACTIONREVERSALTRANS erd

    You can use tableid2name function to get a table name from table id.

    If you want to, you can also develop a job to extract ids and names of all tables. This blog (even though the topic is a bit different) shows one example: dynamicsuser.net/.../how-to-get-list-oftables-table-group-main-tables-in-x

    Please remember that table ids might be different in different environments, especially for your custom tables.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans