Sent an HTTP request to Sharepoint in microsoft flow error: “Server relative urls must start with SPWeb.ServerRelativeUrl”
-
26-01-2021 - |
Pergunta
I am using HTTP request to Sharepoint in microsoft flow to get the image file from SharePoint. I am getting below error:
{ strong text "message": "Server relative urls must start with SPWeb.ServerRelativeUrl\r\nclientRequestId: fb4b8fad-a324-4e4f-9bae-9c887459adc7\r\nserviceRequestId: 9d57a39e-70e2-7000-8ba9-e2604dd27bdb", "status": 400, "errors": [ "-2147024809", "System.ArgumentException" ] }
Please help to resolve this error.
Thanks in advance.
Solução
Make sure that
- You have provided the correct site address URL
- The file path is not started with a Forward Slash / that should be like this
GetFolderByServerRelativeUrl('Temp Directory/NewIssue.png')
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange