Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Getting the approval status of a Payment Journal Line

Posted on by 53
Hi community! I was wondering if there was a way to get the approval status of a payment journal line.
I can see there is a "Pending Approval" field in the Gen. Journal Line table but its value is still false in the inspector even though an approval has been requested for this journal line. 
 
 
Update (Oct 11): I want to get the approval status of the journal line, NOT the journal batch.
I notice there is a private variable in the Payment Journal Page(256) called GenJnlLineApprovalStatus and I wonder if there is any way to get the value of this variable.
 
 
 
Please help, thanks!
  • gdrenteria Profile Picture
    gdrenteria 11,183 Most Valuable Professional on at
  • kayc529 Profile Picture
    kayc529 53 on at
    Getting the approval status of a Gen. Journal Line
    @YUN ZHU
     
    Is there a way to get the values of these variables?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,749 Super User 2024 Season 2 on at
    Getting the approval status of a Gen. Journal Line
    Hi, hope the following helps.
    Business Central 2023 wave 2 (BC23): More control over general journal approvals (Approval Status)
     
    Thanks.
    ZHU
  • kayc529 Profile Picture
    kayc529 53 on at
    Getting the approval status of a Gen. Journal Line
    I have set up the workflow correctly (notification received by the approver) but the "Pending Approval" field is still false
     
  • VaHiX Profile Picture
    VaHiX 2,447 on at
    Getting the approval status of a Gen. Journal Line
     

    ** Please don't forget to close up the thread here by Like and verify it as an answer if it is helpful **

  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 23,919 Super User 2024 Season 2 on at
    Getting the approval status of a Gen. Journal Line
  • Suggested answer
    Andy Wingate Profile Picture
    Andy Wingate 320 on at
    Getting the approval status of a Gen. Journal Line
    Hiya,
     
    For line approval you should check the field called "Approval Status".  The pending approval field doesn't appear to be used for either line approval or batch approval. To get the view shown by Sache you need to be using 'Batch approval' which is a different workflow template. 
     
    You might want to check your workflow also, its possible the approval didn't remove the restriction. you can always test a default one. 
     
     
     
    Does that help at all?
     
    Best 
    Andy
  • Suggested answer
    CU23091617-0 Profile Picture
    CU23091617-0 8 on at
    Getting the approval status of a Gen. Journal Line
     
    It seems the workflow has been configured but the General Journal Line is not yet sent for Approval.
    Vendor No. is blank in your screenshot.
    If you fill the required fields and send it for approval it will update the Approval Status to "Pending Approval"
  • kayc529 Profile Picture
    kayc529 53 on at
    Getting the approval status of a Gen. Journal Line
    Some more info about what I am trying to do: I have an action that should only be triggered if the journal line has been approved, so I was hoping to get a boolean value or some indicator.
  • Sacha E Profile Picture
    Sacha E 112 on at
    Getting the approval status of a Gen. Journal Line
    You obviously don't have this view?
    On both our General Journal and Payment Journals we can see the Approval Status on top next to the batch name. We do use workflows for our approvals and have a Workflow User Group for our Journal Approvals.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,316 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans