Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Email address manually entered in form not working in flow

(1) ShareShare
ReportReport
Posted on by 2

I am trying to send an approval status to another email address that is manually entered in the Form on original entry. However, I keep getting an error message "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_4')' is of type 'Object'. The result must be a valid array." 

 

I know the flow works with a defined email address entered in "To:" field via Send an Email (V2) part of the flow, but not grabbing the email manually entered by user.

 

Any insight? 

  • wyattdave Profile Picture
    406 Super User 2025 Season 1 on at
    Re: Email address manually entered in form not working in flow

    Hi @dholl007 ,

    this sounds like because you are using an Apply to each on an individual item. Apply to each only work on arrays (tables) and you are passing an item (row). 

    To fix the issue you need to remove the action you are entering the email address from inside of the Apply to each and then re-add the email address back into the action.


    >--------------------------------------------
    If this helped solve your question please mark it as the solution.

    I also do a weekly Power Platform blog at https://dev.to/wyattdave

  • trice602 Profile Picture
    13,763 Super User 2025 Season 1 on at
    Re: Email address manually entered in form not working in flow

    Hi @dholl007 ,

     

    Without seeing your flow, it is difficult to understand but will guess and describe here:

     

    Your trigger will be "When a new form response is submitted"

     

    Action:  Get responses.

     

    Action: Start and Wait for an approval (example)

     

    One option: your form question should be a text field.  You can add a subtitle to your question and ask the user to enter in more than one email address with a semicolon, so

     

    valid:  tom@somewhere.com

    valid:  tom@somewhere.com; you@somewhere.com 

     

    Then your start and wait for an approval is the dynamic content for this question from get response details.  I suspect your form question is not a text field and something else but again, difficult to describe a solution without knowing what it is, but the above does work.

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow