web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Reply to email (V3) is...
Power Automate
Answered

Reply to email (V3) is giving me error triggerOutputs()?[body/sensitivityLabelInfo] is of type Null

(2) ShareShare
ReportReport
Posted on by 24
Hi There,
 
I have a flow where I am using a trigger called 'When a new email arrives in a shared mailbox (V2)'. I am performing some actions in between finally I am supposed to send a reply to all having output from those actions in between.
Problem is I am getting an error 'bad request' in Reply to email (V3) action. The error is like this:
"Action 'For_each_2' failed: The execution of template action 'For_each_2' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/sensitivityLabelInfo']' is of type 'Null'. The result must be a valid array."
 
This is how the flow looks:
 
The error I am getting is like below:
 
 
Can someone please help me identify where I am going wrong?
 
Regards,
Arnab
Categories:
I have the same question (0)
  • Suggested answer
    Tomac Profile Picture
    3,966 Moderator on at
    It seems like the issue is in your Apply To Each action - the value you're using there:
    triggerOutputs()?[body/sensitivityLabelInfo]
    is not a valid array to run a loop against. 
     
    What data item are you trying to iterate through with your loop?
  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hi there!
     
    That's strange!  You should be able to add this to handle empty labels.
     
    coalesce(triggerOutputs()?['body/sensitivityLabelInfo'], json('[]'))
     
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • AC-23071728-0 Profile Picture
    24 on at
     
    Copilot is also giving me this response (coalesce(triggerOutputs()?['body/sensitivityLabelInfo'], json('[]'))). But how to use it in my flow? I don't have any json or parse json in the flow. Can you please suggest?
     
     
    Hi ,
     
    My for each is @{outputs('Find_files_in_folder')?['body']}. Basically, for all the files available with matching criteria.
     
     
    Also, this problem is arising with only 'Reply to email (V3)' action. It works perfect with 'Send an email from a shared mailbox (V2)'
     
     
    Totally confused now. :(
  • Verified answer
    stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    Your question is really confusing.
    The description and the screen shot are not the same...
    If the error is from your screen shot, choose 'Original Mailbox Address', and the value should be the shared mailbox address.
    See below pic.
     
  • Suggested answer
    AC-23071728-0 Profile Picture
    24 on at
    Hello ,
     
    You are right. I've added 2 screen shots. First one, when I was trying with Reply to email v3 where I was getting that error. The second one is when I tried the same flow but with send an email v2 instead reply to an email v3. Second one worked.
     
    It's working now with both the actions. I tried your suggestion to add Original Mailbox Address and it worked like charm this time (I have changed some of the action names). I didn't know it was necessary. Thank you for pointing it out.
     
     
    Warm Regards
    Arnab

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard