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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Main account ID

(0) ShareShare
ReportReport
Posted on by

Hi,

How do I fetch main account ID associated with a free text invoice? 

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    What do you mean by fetch?

    Get the main account after the free text invoice is posted or lookup a main account while entering the free text invoice data?

    Best regards,

    Ludwig

  • Community Member Profile Picture
    on at

    Hi Ludwig,

    Thanks for the reply. I am looking for getting the main account after the free text invoice is posted.

  • Suggested answer
    Ramit Paul Profile Picture
    22,797 Most Valuable Professional on at

    You can just click on voucher and check the main account.

  • Community Member Profile Picture
    on at

    I am looking for a query to  fetch the main account ID. Thanks :)

  • Suggested answer
    Ramit Paul Profile Picture
    22,797 Most Valuable Professional on at

    Hi,

    Not  sure, how you or business works, but it is very nice standard practice to use separate number sequence for Free text invoice and sales order invoice.

    It should meet your requirement just by segregating number sequence of voucher/transactions.

    Or, for free text invoice, a default description setup is very nice approach.

  • Suggested answer
    OsmanIstanbul Profile Picture
    2,818 on at

    Hello,

    take custInvoiceline.ledgerdimension and search in the dimensionattributevaluecombination.recId  in this table, there is mainaccount field.

  • Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at

    Hi Anusha,

    Or just use DimensionStorage::getMainAccountIdFromLedgerDimension.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans