cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SKADITYA88
Frequent Visitor

Dynamic Content for Approvers Needed

Hello. I want to ask a question and in dire need of the solution here.

 

So my office wants to automate leave requests using Approvals. But we want to limit the 'Assigned to' row to just 2 people, who are the Human Resource and the requester's Supervisor. Normally in the 'Assigned to' should have the targeted email addresses, correct? But did I go wrong in my steps hence it's missing from the dynamic contents here? Perhaps should I parse my test run beforehand?

 

Any help or suggestions are appreciated. Thank you so much

 

 

SKADITYA88_0-1650275354976.png

The Start and Wait for Approval action I'm troubled with.

 

SKADITYA88_2-1650275693236.png

The overall automation

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hey

 

It depends how people are filling in the form. If they are filling in the form with the approver’s names, you could use the Office 365 Users connector to find the user and then use the Mail dynamic content as the value in the Assigned To field. 

This would mean that the users would have to be inside your M365 tenancy. You would then need to build a condition that if the customer supplies a name that does not exist or cannot be found they are emailed to be told they have chosen an invalid approver and would have to restart the process. 

View solution in original post

5 REPLIES 5
Monkeyman
Resolver III
Resolver III

Hey

 

so you can just put in the email addresses of who needs to approve these requests and it will look them up and resolve the names from your M365 tenancy. 

Alternatively, a slightly better way to do this is to have a SharePoint list or Dataverse table with your approver by department listed, and look up that table and pull back the email addresses. 

also in your condition step, you’ll want to change the word “Accept” to “Approve”. 

If I have helped you, please mark this reply as an accepted solution. 

Yes, I can type in the email of the approvers. But sometimes the approvers may vary according to each division. What I'm looking for is how to set the emails the requester had written in the approval forms, and then it can be used as an input in the 'Assigned to' box. 

 

So the names written as approvers in here...

SKADITYA88_0-1650329661033.png

 

 

Can be used as a dynamic content or referred here:

SKADITYA88_1-1650329781062.png

 

Hey

 

It depends how people are filling in the form. If they are filling in the form with the approver’s names, you could use the Office 365 Users connector to find the user and then use the Mail dynamic content as the value in the Assigned To field. 

This would mean that the users would have to be inside your M365 tenancy. You would then need to build a condition that if the customer supplies a name that does not exist or cannot be found they are emailed to be told they have chosen an invalid approver and would have to restart the process. 

Thank you Monkeyman. For now I will try to use your solution. Hope it goes well

Nice one. Good luck !

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,574)