Skip to main content

Notifications

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? 

  • Anton Venter Profile Picture
    19,595 Super User 2025 Season 1 on at
    RE: Main account ID

    Hi Anusha,

    Or just use DimensionStorage::getMainAccountIdFromLedgerDimension.

  • Suggested answer
    OsmanIstanbul Profile Picture
    2,814 on at
    RE: Main account ID

    Hello,

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

  • Suggested answer
    Ramit Paul Profile Picture
    22,473 Most Valuable Professional on at
    RE: Main account ID

    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.

  • Community Member Profile Picture
    on at
    RE: Main account ID

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

  • Suggested answer
    Ramit Paul Profile Picture
    22,473 Most Valuable Professional on at
    RE: Main account ID

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

  • Community Member Profile Picture
    on at
    RE: Main account ID

    Hi Ludwig,

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

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Main account ID

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans