cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mgodby
Post Patron
Post Patron

Fix invalid expression(s) for the input parameter(s) of operation 'HTTP_3'.

Hello. I am trying to do a POST Http request based on what's on this documentation: https://docs.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http#perm...

 

I'm attempting the Example 5.

 

When I first pasted the JSON body, it said the JSON was invalid but that was only because there was an extra comma after preFetchMedia:

 

teamsbotImage1.png

 

After removing the comma, I pasted the body into my http request:

 

Mgodby_1-1606169566903.png

 

Then the "Fix invalid expression(s) for the input parameter(s) of operation 'HTTP_3'." error appeared. I noticed that if I remove the "@" symbol from the @odata.type fields the error goes away but I'm worried that that might be breaking things.

 

Does anyone know what's wrong with this and how to fix it? Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions
manuelstgomes
Super User
Super User

Hi @Mgodby 

 

I had that problem the other day, and it took me some time to understand what to do.

In the "@odata.type," put "@@odata.type". It will pass the validation and return the result you want

 

Can you please check if and let me know if you have any questions?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

4 REPLIES 4
manuelstgomes
Super User
Super User

Hi @Mgodby 

 

I had that problem the other day, and it took me some time to understand what to do.

In the "@odata.type," put "@@odata.type". It will pass the validation and return the result you want

 

Can you please check if and let me know if you have any questions?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

manuelstgomes
Super User
Super User

Hi @Mgodby 

 

Did it work?

 

Cheers
Manuel

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I got it to work by doing a compose with "@odata.type" within it and then referencing that in the http body.

rjd2703
Advocate I
Advocate I

agree that adding additional @ to the @odata.id property name does work. Stupid this isn't necessary when using the HTTP Azure AD action. Custom connector Body also requires the additional @. This must be a bug?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,779)