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

View solution in original post

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,053)