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, ...
Unanswered

How will catch Ledger account in PurchPackingSlipJournalPost

(0) ShareShare
ReportReport
Posted on by 56

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 

I have the same question (0)
  • Hariharans87 Profile Picture
    36 on at

    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

  • @rp@n Profile Picture
    56 on at

    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

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 March 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 658

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 315 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans