Hi there,
I am trying to run a flow for a new user process, whereby a user is requested and passes different approval dependent on requester. The idea is:
A list item is created for new user, line manager and other information captured
IF the creator of the list item is the line manager, send approval ITOperations@domain.com
IF NOT the line manager (HR, for example, may request), send approval to line manager
once line manager approves, send to ITOperations@domain.com
Once approved, create new Sharepoint item list (using a flow to format data ready for script, such as UPN, samAccountName etc)
Is there a sensible way to do this? I wonder if I can use the Switch Control to update status, but can't quite get my head around it!
thanks,
Jake
Solved! Go to Solution.
Hi @JGO ,
You may consider using either Switch cases or Conditions.
In the following scenarios, I am going to use the Job title of the creator to check if the creator is Manager or HR. I have added all the related info of users in my organization in Azure AD previously, including the Job title.
The first scenario is using the Conditions.
After the trigger When an item is created, add a Condition to check if Created by JobTitle is equal to Manager.
Under if yes branch, start an approval to ITOperations.
Under if no branch, send an approval email to the Manager first, then add Condition2 to check if the Response is equal to Approve. If yes, send approval email to ITOperations.
The second scenario is to use the Switch cases.
Under the trigger add a Switch case on Created by JobTitle. On case Manager, start an approval to ITOperations directly. On case HR, send the approval to Manager first, then send approval email to ITOperations if the manager approved the request.
Please take it for a reference.
About how to add or change user profile info, please check the following doc:
Best regards,
Mabel
Hi @JGO ,
You may consider using either Switch cases or Conditions.
In the following scenarios, I am going to use the Job title of the creator to check if the creator is Manager or HR. I have added all the related info of users in my organization in Azure AD previously, including the Job title.
The first scenario is using the Conditions.
After the trigger When an item is created, add a Condition to check if Created by JobTitle is equal to Manager.
Under if yes branch, start an approval to ITOperations.
Under if no branch, send an approval email to the Manager first, then add Condition2 to check if the Response is equal to Approve. If yes, send approval email to ITOperations.
The second scenario is to use the Switch cases.
Under the trigger add a Switch case on Created by JobTitle. On case Manager, start an approval to ITOperations directly. On case HR, send the approval to Manager first, then send approval email to ITOperations if the manager approved the request.
Please take it for a reference.
About how to add or change user profile info, please check the following doc:
Best regards,
Mabel
Thanks very much, will give it a go!
Hi @JGO ,
How is it going?
If it works for you, please mark it as Answer.
Best regards,
Mabel
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
36 | |
35 | |
33 | |
26 |
User | Count |
---|---|
39 | |
38 | |
33 | |
31 | |
24 |