Hi everyone
I have a flow which trigger is when an item is created/modified and I was successfully in create condition to separately send email for each item created or modified
1/ However, for the update item it will cause infinite email
2/ If I change to approval before sending , the flow will always go to create branch (due to version number in sharepoint list setting always= 1, without approval, no new modified item was created so the trigger will go wrong).
Anyone has suggestion for these issues?
HI @Vontovius
You can create a column named email sent in SP of type yes/ no and update it after the email is being sent. In the trigger, you can add a trigger condition to run the flow only if the value of the yes/ no column is no.
https://www.c-sharpcorner.com/article/conditionally-triggering-ms-flow-based-on-columns-value/
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi,
In addition to Yashag's suggestion, you could also change the trigger of the flow from "When an item is created or modified" you could switch it to "When an item is created". As of now you are triggering the SharePoint item whenever you modify the SharePoint item and you are modifying the SharePoint item in the middle of the run. You need to track another value that is changing between runs in order to stop this loop.
Regards,
Alex
-------
Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
66 | |
23 | |
16 | |
16 | |
13 |
User | Count |
---|---|
116 | |
35 | |
32 | |
28 | |
26 |