Question

I'm trying to use a Flow to create news links in a modern site when a new post is published to an external site's rss feed.

enter image description here It appears to get the JSON content correctly but the "send an http request to SP" action fails with this error:

{"odata.error":{"code":"-1, 
Microsoft.SharePoint.Client.InvalidClientQueryException","message": 
{"lang":"en-US","value":"An entry without a type name was found, but no 
expected type was specified. To allow entries without type information, the 
expected type must also be specified when the model is specified."}}}
clientRequestId: 94e00dab-0fa0-42ff-bad5-1a01977e36b4
serviceRequestId: ee528d9f-9037-b000-a5d6-4561d64500a1
Was it helpful?

Solution

In the body of the "send an http request to SP" action, I notice that there is only one underscore in front of metadata. It should be two, like this: "__metadata":{"type":"SP.Publishing.RepostPage"}.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top