POST method
2 TopicsInvoke-WebRequest : { "type": "Client error", "title": "Missing HTTP body" } - Error Api invoke
Dear all, I need your support about the error indicated in the subject. The Body field in the cmdlet contain the Json data but it is not possible to execute. Invoke-WebRequest -Uri 'xxxxx' -Method POST -Headers $headers -ContentType 'application/problem+json' -body $body1.2KViews0likes1CommentRest API - Fetch Data using POST method and CamlQuery and Lookup Column
Hello, I am trying to get Username(Display name) from YourName field which is Person type field. But When I get result, I get ID as YourNameId. How can I get name rather than Id with using following method because it's mendatory for me to use it. var restUrl = "https://contoso.sharepoint.com/_api/web/lists/GetByTitle('JourneyDetails')/GetItems"; var camlQuery = "<View><ViewFields><FieldRef Name='YourName' /></ViewFields></View>"; axios .post( restURL, { query: { __metadata: { type: "SP.CamlQuery" }, ViewXml: camlQuery } }); Update: 02-09-2018 I want to use filter as well I have 2 more fields. Where I need condition like below $filer= (SuprvisorResponse eq 'Approved') and ((DepartmenResponse ne 'Approved') or (DepartmenResponse ne 'Rejected')))Solved12KViews0likes4Comments