Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

How to Manage Action and Approval flow

(0) ShareShare
ReportReport
Posted on by 1

Hi,

 

I am newbie in this application. We have requirement about workflow approval for work order & helpdesk ticketing.

Currently, we explore power apps, sharepoint, and flow but stuck in the approval path.

 

Our scenario is, we have 2 approver. How can we assign the approver based on who apply the request or which type of work.

example: 

 

Approver 

Approver A only approve request from requestor A

Approver B only approve request from requestor B

 

Approver A:                           Approver B:                                    

Type of work                         Type of work

- Change request                - New request

- Bug Fixing                         - enhancement

 

Thank you

Noble

 

  • Verified answer
    v-xida-msft Profile Picture
    on at
    Re: How to Manage Action and Approval flow

    Hi @victoria_noble,

     

    Could you please share more details about the data structure in your SharePoint?

    I suppose that you store the data of work orders in your SharePoint list. I have created a SharePoint list to store the data of Work Orders, the data structure as below:

    Requestor  Single line of text (requestor A, requestor B)

    TypeofWork  Choice (New request, Change request, Bug Fixing and Enhancement)

    RequestContent Single line of text

    5.JPG

     

    I have made a test on my side and please take a try with the following workaround:

    • Add “When an item is created” trigger.
    • Add a Condition, click “Edit in advance mode”, type the following formula:
    @and(equals(triggerBody()?['Requestor'], 'requestor A'),or(equals(triggerBody()?['TypeOfWork']?['Value'], 'Change request'),equals(triggerBody()?['TypeOfWork']?['Value'], 'Bug Fixing')))
    • Within “If/yes” branch of Condition, add “Start an approval”. Assigned to filed set to Approver A.
    • Within “If/no” branch of Condition, add a Condition 2, click “Edit in advanced mode”, type the following formula:
    @and(equals(triggerBody()?['Requestor'], 'requestor B'),or(equals(triggerBody()?['TypeOfWork']?['Value'], 'New request'),equals(triggerBody()?['TypeOfWork']?['Value'], 'Enhancement')))
    • Within “If/yes” branch of Condition 2, add “Start an approval”, Assigned to filed set to Approver B

    Image reference:2.JPG

     

    3.JPG

    The flow works successfully as below:4.JPG

     

    Bets regards,

    Kris

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow