Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How will catch Ledger account in PurchPackingSlipJournalPost

(0) ShareShare
ReportReport
Posted on by 18

Hi all,

For example- suppose I have done PO - Product receipt

Then go to Product receipt- Journal - Voucher

For example - Suppose I got 2 ledger account
1. Ledger account from Posting profile
2. Ledger account from item group

Say
13501 - Posting type = PPV
13018 - Product receipt

I need at add condition like

if(postingType == PPV)

{

 //  then need to change only main account

}

else

{

// no changes

}

Those ledger accounts, I want to catch in PurchPackingSlipJournalPost

Kindly let me know how I will achieve this?

Please give me more shed on this 

  • @rp@n Profile Picture
    18 on at
    RE: How will catch Ledger account in PurchPackingSlipJournalPost

    Thanks Hariharn,

    I will check in system soon. As per the call stack what I understand that I will get the ledger account in PurchPackingSlipJournalPost in endledgerVoucher method.

    Is it correct?

    Please give me more shed on this

  • Hariharans87 Profile Picture
    3 on at
    RE: How will catch Ledger account in PurchPackingSlipJournalPost

    I just put the breakpoint on the GeneralJournalEntry table insert method and attached the call stack for your reference.

    In this way you get the more detail on debug.

    pastedimage1629196269259v1.png

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,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans