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

Recurrence flow send email even the action was skipped

My flow checks each day all items of a list and sends an email 3 days before expiration date "date planif revizie1"

 

When I run one item it works perfectly.

When I run two items even the condition for expiration date it is false and the "send an email" is skipped, it still sends emails.

 

Bellow the flow. Thank you for your help.

 

Capture1.PNGCapture2.PNGCapture3.PNGCapture4.PNGCapture5.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

So outcome is a dynamic response that is available after a wait for 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





View solution in original post

7 REPLIES 7
Jcook
Super User III
Super User III

Hello @MihaelaG
Thank you for your pictures.

Could you share a picture where the email action is.
Thanks

—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





MihaelaG
Frequent Visitor

Capture6.PNG

 

code:

{
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['shared_approvals']['connectionId']"
}
},
"body": {
"notificationUrl": "@{listCallbackUrl()}",
"title": "[Revizie service] Revizie 1 planificata nr. @{items('Apply_to_each_2')?['ID']}client @{items('Apply_to_each_2')?['Title']}",
"assignedTo": "mihaela",
"details": "Buna ziua,\n pe:\ndata de @{items('Apply_to_each_2')?['Dataplanifrevizie1']}\npentru client @{items('Apply_to_each_2')?['Title']} \nechipamente @{items('Apply_to_each_2')?['Modelechipament']}\n\nApprove =  "",
"itemLink": "@items('Apply_to_each_2')?['{Link}']",
"itemLinkDescription": "Link detalii contract",
"enableNotifications": true,
"enableReassignment": true
},
"path": "/types/@{encodeURIComponent('Basic')}/subscriptions",
"authentication": "@parameters('$authentication')"
},
"metadata": {
"flowSystemMetadata": {
"swaggerOperationId": "StartAndWaitForAnApproval"
}
}
}

Hello,

Can you try to put ‘Outcome’ instead of ‘Responses’ in the input for the apply to each loop.

Hello @Anonymous,

You will have to either:
- Add a ‘Wait for approval’ action
Or
- Switch from using ‘Start an approval’ to ‘Start and wait for an approval’

Additionally after you have done one of the following changes, you may need to switch Responses in your of condition to Outcome

—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





MihaelaG
Frequent Visitor

Dear Josh,

 

Replacing ‘Outcome’ instead of ‘Responses’ in the input for the apply to each loop - "Outcome" like function is not recognize, has it another name?
Add a ‘Wait for approval’ action - After change, all steps are done OK but with the general error "ActionFailed. An action failed. No dependent actions succeeded." this happens even if for one item should request approval.
Switch from using ‘Start an approval’ to ‘Start and wait for an approval’ - It is same the result if I use "Start and wait for an approval" or "Start an approval" or "Send a notification email". In plus it waits the approval of first item before it passes to the next item.


Even we do not discover the cause of non-function for this flow could you advise me with general notifcation flow:

This flow should check each day (in Contract list) if in 3 days the contract expires. If expires it sends an email. The recipent should confirm that the contract was extend (with new expiration date) or not ( contract dissolution).

 

Thanks

Hello,

So outcome is a dynamic response that is available after a wait for 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





View solution in original post

MihaelaG
Frequent Visitor

Hello Josh

 

Not yet, I am testing by spliting the process

I will come back with the result

 

Best Regards

 Mihaela

Finnaly had worked by starting over.

 

Have a nice day!

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (37,852)