Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Struggling with State Machine - Dynamic Approval Workflow

Posted on by 873

Hello,

I have a dynamic approval workflow that triggers when a new request is created.

The dynamic approval data are defined in a table, and below is an example:
SampleApprovalsData.png

 

As you see, each approval level is a record that includes the approval email and the other details.

What I want to achieve for the dynamic approval workflow is the below:

  1. Whenever any approval request is rejected, the flow should send an approval to the requester where he can decide to either (Resubmitted for review, or Stop the flow).
  2. If the requester resubmitted for review it should get back to the previous approval level.

I already watched this amazing video State Machine Workflow - Power Automate  and he covered the main concept for state machine workflow - static approvals. As he already knows how many approval levels in the flow he has. However, my requirement is different as I don't know how many approval levels I might have based on request type + on any rejection it should get back to the requester to take a decision to avoid creating a new request.

Below is a screenshot of how I started designing the flow:

Dynamic-Approval-First-Photo.pngDynamic-Approval-second-photo.png

Could you please advise what will be the solution to cover the above requirements for dynamic approval levels workflow?

Any help is highly appreciated.

Best regards,
EBMRay

  • Nya Profile Picture
    Nya 29,056 on at
    RE: Struggling with State Machine - Dynamic Approval Workflow

    Hi EBMRay,

    May I know if what you want is just a whole designed flow or you have encountered a specific problem in the design process?

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans