web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Request Approval Flow Condition Error

(0) ShareShare
ReportReport
Posted on by 150

Hi to all,

I am setting up a Request Approval Sales Invoice power automate flow, however, I don't understand the error that I am getting every time I run the flow and accept the request. 

pastedimage1610648701601v1.png

I set myself as an approval administrator in BC, but why am I getting this error?

Thank you in advance.

I have the same question (0)
  • JAngle Profile Picture
    133 on at

    Approval administrator is for BC approvals, this is Power Automate approvals. What license type and permissions do you have in BC?

  • Kae Profile Picture
    150 on at

    I have Super Permission and Full Access. My License is BC Essential.

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Is this an OnPrem scenario or a scenario in SaaS. If OnPrem scenario, you may want to refresh your license.

    Thanks.

  • Kae Profile Picture
    150 on at

    Hi Marco, this is Saas.

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hi,

    Feel free to raise a support request via your CSP or partner so we can verify it on our side as well.

    Thanks.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    I hadn't been using PA to do approvals but recently got the same error and figured out what was wrong. It is a fairly silly solution but it for sure works. The user you have defined on the BC connector needs to be in the approval user setup page of BC either as an approver to any user or as a substitute to any user. If all that is true then it works like a charm.

    It's all down to this procedure that is called from the workflow webhook management codeunit. Part at the bottom is where the work around comes into play.

       local procedure CanAct(WorkflowWebhookEntry: Record "Workflow Webhook Entry"): Boolean

       var

           UserSetup: Record "User Setup";

           WorkflowStepArgument: Record "Workflow Step Argument";

       begin

           if WorkflowWebhookEntry.Response <> WorkflowWebhookEntry.Response::Pending then

               exit(false);

           if IsNullGuid(WorkflowWebhookEntry."Response Argument") then

               exit(false);

           if not WorkflowStepArgument.Get(WorkflowWebhookEntry."Response Argument") then

               exit(false);

           case WorkflowStepArgument."Response Type" of

               WorkflowStepArgument."Response Type"::"User ID":

                   begin

                       if WorkflowStepArgument."Response User ID" <> UserId then

                           exit(false);

                       UserSetup.Init();

                       UserSetup.FilterGroup(-1);

                       UserSetup.SetFilter("Approver ID", '%1', UserId);

                       UserSetup.SetFilter(Substitute, '%1', UserId);

                       exit(UserSetup.FindFirst)

                   end

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans