cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Flow with HTTP request error

 
I try to send some data to to flow via fetch and the connector "when an http request is recieved". I use a "button" in javascript that starts and sends the data to flow:
 
However, I get an error.
 

On flow I have the following:

flowhttp.PNG

 "$schema": "http://json-schema.org/draft-04/schema Jump #",
    "type": "object",
    "properties": {
        "emailaddress": {
            "type": "string"
        }
    },
    "required": [
        "emailaddress"
    ]
}

Example data from from front-end and how I use fetch in the code:

let data2 = {emailaddress: "test"}

var settings = { 
"async": true, 
"crossDomain": true, 
"url": myUrl, 
"method": "POST", 
"headers": { 
  "content-type": "application/json", 
  "cache-control": "no-cache" 
}, 
"processData": false, 
 "data": JSON.stringify(data2)
  } 

   //my fetch      
fetch
(myUrl,settings) });

Above I have connected the fetch to a button. When I click to it, it post toflow. However, when I try to use the variable I sent (emailaddress/test) I get the following error:

flowerror.PNG

Unable to process template language expressions in action 'Post_a_message_as_the_Flow_bot_to_a_channel' inputs at line '1' and column '2100': 'The template language expression 'triggerBody()['emailaddress']' cannot be evaluated because property 'emailaddress' cannot be selected. 

How come?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Akourt ,

 

Could you please share a screenshot of the configuration of your flow?

Could you please share the output from the trigger?

The error message told that the “The template language expression 'triggerBody()['emailaddress']' cannot be evaluated because property 'emailaddress' cannot be selected, please share the full output from the trigger so we could take a try to provide a proper workaround for you.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @Akourt ,

 

Could you please share a screenshot of the configuration of your flow?

Could you please share the output from the trigger?

The error message told that the “The template language expression 'triggerBody()['emailaddress']' cannot be evaluated because property 'emailaddress' cannot be selected, please share the full output from the trigger so we could take a try to provide a proper workaround for you.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (76,967)