cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Partisan
Post Partisan

Flow to sent out approvals

With the flow I'm working on, i'm trying to send approvals out to several ppl to view a users entries full weeks entries.  For example I've separated the stages from G1, G2, G3 and G4. 1st stage G1 views the submitted entries and approves it, then once it shows on the list it's been approved the next flow takes places for G2 to view and approve till they get to G4. The flow should be that "when a item is created, start and wait for approvals, if G1 is blank and G2 is blank, then the email is sent out for G1 to view the entries and to approve, if it's the case that G2 has been filled then that means there's an error somewhere cause G2 can't be filled till G1 staged is completed). This will go on till G4. I will be creating  separate flows for this to make it easier to maintain.

 

First flow will be from G1 - G2

2nd Flow: G2 - G3

3rd Flow: G3 - G4 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SandraAkujobi

 

true instead of True.

Please mark the question as solved.

1.png2.png

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

42 REPLIES 42
Dual Super User III
Dual Super User III

I would build this as a single flow.  There is no reason to split it up into 4 flows. Here's the general process.

 

  • Trigger - When an item is created
  • Send approval for G1
  • Record response for G1
  • If approved send approval for G2
  • Record response for G2
  • etc.


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

It would be better that way, but to maintain it in the long run that was  my only reason with going with that method. I could still the way you said. 

 

But now it's to create the flow, so how would that come about, basically I've done this much;

 

Screenshot (44).pngScreenshot (45).png

 

The thing is that, I'm not getting an email stating to approve or reject, but instead the flow works as it send and email that the item had not been approved, which makes no sense as I didn't receive an email prior to that to choose approve/reject. Even if it sends an email that it has been rejected on the list itself it doesn't automatically update and state that it was rejected. 

Hello @SandraAkujobi

In your condition. Is both conditions checking for a value called “Blank”?

If yo want to check for blank value please use:
empty(<insert dynamic content>) is equal to true

In your second condition you are checking if the approval has been approved?
You will have to use Outcome is equal to Approve.

Outcome is dynamic content from the approval action.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others




Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips, tricks, and guides
FlowAltDelete




YOu don't need the condition to check for G1 or G2, etc.  When the flow starts send the approval for G1.  When that returns check the outcome.  If Approved then send G2.  If not, terminate the flow or do whatever you want to do when the flow is rejected. Do the same for the other stages.  The only way to reach G2 then is that G1 was approved.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Post Partisan
Post Partisan

I've worked on the flow for G1 approval and it works but the only issue is that it's not displaying on the list that it's been approved, so that's the G1 column on my list. Also if I was to add all those stages/flows onto this one flow how would I do that, would be after the G1 flow has been approved what action should I add next for G2.

The approval action doesn't change anything on the list.  You have to do an update acton to store the approval in whatever field you've setup.

 

To add the others, you add the G2 to the yes side of the G1 approval, then add G3 to the yes side of the G2 approval and so on



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Yes I know that, I've included the update action in my flow, but it still doesn't update the column. 

Hi @SandraAkujobi ,

 

Could you please share a screenshot of the configuration of your current flow?

Could you please share the run history of your flow?

 

Please refer to screenhsot below to create the flow:

1.png2.png

 

And you could add a condition under the Start an wait for an approval 2 action to check if it is approved by the G2 as the previous steps.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So I've done exactly what you've posted and it's basically the same format as my own flow and it's still not displaying the approval status on the SharePoint List. 

Below is the screenshot of the flow;

Screenshot (46).pngScreenshot (47).pngScreenshot (48).png

Hi @SandraAkujobi ,

 

Please enter the ID dynamic content from the trigger to the Id field in the Update item action.

And the status would be updated in the G1 field if the Update item action run successfully.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I've done that and it's still the same, I tried different dynamic content field just to see if the issue lay with the ID dynamic content but its didn't help at all cause at the end it still didn't display the status of the submission.

Hi @SandraAkujobi ,

 

Has the "Update item" action run in your flow.

Could you please share the run history of the "Update item" action?

Please share the run history of your flow  so we could better understand the issue?

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The flow has ran successfully, so that's why this is so confusing to me. Anyways I've taken a screenshot of the flow and yes I can definitely see that there as some issues within the flow, but why did it run successfully?

 

Screenshot (52).png

 

In condition 2 you can see that the expression displays "false", I have no idea why that is like so. But these are images displaying the issue.

 

Screenshot (54).png

Screenshot (51).png

It ran successfully because the actions were skipped due to not meeting conditions rather than failing from an error.  Essentially it ran successfully, but didn't do anything.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @SandraAkujobi ,

 

The Condition in your flow has run into If no branch so the Update item action has skipped in your flow, the Update item haven't run in your flow.

Do you want to check if the G1 column is empty in your Condition?

If yes, you should check if the empty(G1dynamic content) is equal to true as screenshot below:

1.png

 

The first expression in the Condition:

empty(outputs('Compose'))

 

The second expression in the Condition:

empty(outputs('Compose_2'))

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So with the example you sent,m I tried it but the fail failed, below are the two images that display that. I think it had something to do with the "greater than" in the condition2 for G1.

 

Screenshot (55).pngScreenshot (56).png

The second time I tried and changed the "greater than" to "is equals to", then the flow ran successfully but it wasn't updating the list, also I'm not getting an email stating to approve or reject. 

 

Screenshot (57).pngScreenshot (58).png

Hi @SandraAkujobi ,

 

The start and wait for an approval action would only run whn the result of the Condition is equal to true and run in to the If yes branch of the condition, however , your condition is run into if no branch.

 

What is the Type of the G1 column in your list?

Could you please make sure:

1. Create the G1 and G2 column in your sharepoint with single line of text type.

2. When create an item to the sharepoint list, leave the G1 and G2 column blank, don't enetr anything to the G1 and G2 column,please make sure.

3.The flow would run, and please make sure you have refered to my screenshot to create the flow. and if your flow still don't work, please share the full screenshot of the flow, the full screenshot of the error message, the screenshot of the item in the sharepoint list with me for troubleshootin your flow.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-alzhan-msft everything you've listed I've done it all.

 

Below are the screenshots related to the flow.

 This is my SharePoint with the G1-G4 column all blank.

Screenshot (60)_LI.jpg

 

This are screenshots of the flow, as you can see it says the flow has run successfully, but nothing happened, also I didn't get an email stating to approve or reject an approval.

Screenshot (61).pngScreenshot (62).pngScreenshot (63).png

Can you provide a screenshot of the formulas you are using in Condition 2?  Since that is evaluating to false none of the rest of your flow that sends the email is running.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,761)