Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

SEND APPROVAL REQUEST BUTTON NOT WORKING

Posted on by 30

I created a new page and added it to the approval management and workflow response Codeunit and also created  approval workflow on NAV 2017. but on clicking the "Send Approval Request" button on the page, nothing happens and the status still remains "Open". what can I do for the status to change to pending Approval as I have done that in the approval management Codeunit.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SEND APPROVAL REQUEST BUTTON NOT WORKING

    Hi

    please use this code under SendApprovalRequest - OnAction() dont use additional code

    IF ApprovalsMgmt.CheckSalesApprovalsWorkflowEnabled(Rec) THEN

     ApprovalsMgmt.OnSendSalesDocForApproval(Rec);

    and

    If Sales follow this

    open client search workflow -> Sales document-> sales order Approval workflow or sales credit memo Approval workflow and click Edit ->check Enable button to yes ->click Ok

    for purchase also similar

    finally sure it will work

    reference follow this link

    docs.microsoft.com/.../dd338778(v=nav.90)

    Thank you

  • OLORIJMK Profile Picture
    OLORIJMK 30 on at
    RE: SEND APPROVAL REQUEST BUTTON NOT WORKING

    SendApprovalRequest - OnAction()

    IF CONFIRM('Send this Application for Approval?',TRUE)=FALSE THEN EXIT;

    IF ApprovalsMgmt.CheckEDMSApprovalsWorkflowEnabled(Rec) THEN

     ApprovalsMgmt.OnSendEDMSForApproval(Rec);

    CancelApprovalRequest - OnAction()

    IF CONFIRM('Cancel this application?',TRUE)=FALSE THEN EXIT;

    ApprovalsMgmt.OnCancelEDMSApprovalRequest(Rec);

    Approve - OnAction()

    ApprovalsMgmt.ApproveRecordApprovalRequest(RECORDID);

    Reject - OnAction()

    ApprovalsMgmt.RejectRecordApprovalRequest(RECORDID);

    Delegate - OnAction()

    ApprovalsMgmt.DelegateRecordApprovalRequest(RECORDID);

  • OLORIJMK Profile Picture
    OLORIJMK 30 on at
    RE: SEND APPROVAL REQUEST BUTTON NOT WORKING

    I have added exactly this code  but it was not responding.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SEND APPROVAL REQUEST BUTTON NOT WORKING

    Hi

    under your page action you need to write this code

    ApprovalsMgmt-codeunit(1535)

    IF ApprovalsMgmt.CheckSalesApprovalsWorkflowEnabled(Rec) THEN
    ApprovalsMgmt.OnSendSalesDocForApproval(Rec);

    and please follow this link ,

    docs.microsoft.com/.../dd338778(v=nav.90)

    no need to write a code this simple setup,

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: SEND APPROVAL REQUEST BUTTON NOT WORKING

    You need to show us the code you've used under the button you've placed in your page.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans