Requirement: Using PA free License. Trigger the flow everyday at 6.30pm to check if a specific subjected email is received in a mailbox. If received move it backup folder, if not received send email notification to Service Desk.
Attached the error flow for reference
Apply to each -> value
Condition -> item()?['Subject'] contains 'Test'
Error: Cannot read properties of undefined message id
Thank you Nived for the quick response. This solution worked!!!
Hi @Swetha_S
I don't understand why you have used two triggers in flow which is not allowable.
Recurrance trigger (which you have used at top) is the trigger which makes the flow to run at specified time in a scheduled manner.
while when mail arrives is another trigger which triggers when mail arrives, and one thing to note is you can't place two triggers in your power automate workflow.
In your case, flow should be like this:
1. use recurrance to run it daily at 6:30 p
2. use get emails to get all emails with a specific subject from specific folder in outlook account (in my case, i am using subject filter as Issue with XYZ System)
3. use condition action to check whether there are mails available with that subject filter as part of get emails output
Expression used in Left side: length(outputs('Get_emails_(V3)')?['body/value'])
if the condition is true (ie emails are present)
then use apply to each to loop through each emails and then move the mail to designated folder like below
(in my case, i am moving to NN folder)
if condition is false, use send email in no branch like below
Overall flow looks like this:
Nived N 🚀
LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel
🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional