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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need Help with (New de...
Power Automate
Unanswered

Need Help with (New designer) Power Automate Error - 'Send_an_HTTP_request' failed:

(0) ShareShare
ReportReport
Posted on by 25

I’m working on automating a process in Power Automate to create individual emails for different markets. Each market has its own set of recipients and a specific attachment, but the email body remains the same across all.

Instead of sending these emails out directly, I want them to be saved in the Drafts folder — either in my own Outlook mailbox or a shared mailbox — so I can review and send them manually.

I’ve created a flow that loops through the data and generates emails, but I’m running into the following error:

I’ve tried two approaches, but I’m still facing issues. The main problem seems to be with the Select_To value mapping — I’m unable to get the correct structure for the toRecipients field.
 
Here's what’s happening:
  • When I try using a JSON expression inside Select_To, I get the error: "Apply_to_each contains invalid expression(s)"
  • When I try using just item() inside the value, I get: "Action 'Send_an_HTTP_request' failed: Property toRecipients in payload has a value that does not match schema."
The rest of the flow runs fine — it’s just the Select_To that’s not formatting the output the way the Graph API expects.
I’ve attached the code view for both the Apply to each and HTTP actions below. Would really appreciate any suggestions or tweaks you might have to get the mapping right.
Thanks in advance!
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,876 Most Valuable Professional on at
     
    Based on your Select action configuration the format of your Recipients looks like the below, is that correct?
     
    "toRecipients":[
            {
                "emailAddress": "AdeleV@contoso.com"
            }
        ]
     
    However, like you mentioned the format needs to be the below:
     
    So, you would need to add a nested property called address. You can use for example concat & json functions.
     
    "toRecipients":[
            {
                "emailAddress":{
                    "address":"AdeleV@contoso.com"
                }
            }
        ]

    Below is an example
     
    json(concat('{"address":"', item(), '"}'))
     
    Test result
     


     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • Vaish123 Profile Picture
    136 on at
    Instead of this :

    "Select_To": {
          "type": "Select",
          "inputs": {
            "from": "@outputs('Compose_To')",
            "select": {
              "emailaddress": "@{item()}"
            }
          },

    use :

    "Select_To": {
          "type": "Select",
          "inputs": {
            "from": "@outputs('Compose_To')",
            "select": {
      "emailAddress":
    {
        "address": "@{item()}"
      }

    },

    Update similar code for Select_Cc

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard