I'm trying to trigger an email notification to the person assigned in the "SDC Assigned" field. In my current flow, it is triggering an email every time any of the fields are modified and the SDC Assigned field is populated. Is there a way to do a check and see if the field is populated, and if not, send the email? If it is already populated, I would just ignore sending the message.
Solved! Go to Solution.
@Anonymous check this vid, you can check specific columns if they changed when your list is updated.
https://www.youtube.com/watch?v=xvmi21KomK0
@Anonymous - Use trigger condition to check the status...
Try something like below... Owner is my people picker name
@empty(triggerBody()?['Owner'])
Like and Mark this as answer if it helps you resolve your issue.
Thanks Prasad, I tried this, but whenever I change any of the other fields, I'm still getting the notifications. Here is the expression I used where 'SDC Assigned' is my people picker field.
@empty(triggerBody()?['SDC_Assigned'])
Hi @Anonymous
If the trigger condition isn't working, then add a conditional block inside the flow to check for the 'SDC Assigned'. Also, create one more field to store the status of the email sent. If the condition is true ('SDC Assigned' is filled with value and check the email status field whether it is false) then trigger the email and update the email status field to true. Next time when the flow runs it checks for 'SDC Assigned' field and the email status field, though the 'SDC Assigned' field has a value and email status is already updated to true, so the flow will be terminated without sending any extra emails.
Thanks, but I"m not able to add fields in the sharepoint list as I'm not the owner. So storing the status of the email sent is not possible in the sharepoint list. I tried doing a check in the version history to see if the 'SDC Assigned' field was previously modified, but that didn't seem to work. Is there a way to create a field inside the flow to check against? Any other suggestions?
@Anonymous check this vid, you can check specific columns if they changed when your list is updated.
https://www.youtube.com/watch?v=xvmi21KomK0
Thanks for the link. This worked well. I had to make sure to use the right connector, as I kept getting an Error 400
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
37 | |
24 | |
21 |