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:
After removing the comma, I pasted the body into my http request:
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.
Solved! Go to Solution.
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
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
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.
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?
User | Count |
---|---|
27 | |
16 | |
15 | |
10 | |
10 |
User | Count |
---|---|
45 | |
29 | |
28 | |
24 | |
23 |