I'm building a flow to collect answers and uploads from a Microsoft Forms and store them in Dataverse. After the storage in Dataverse is succesfully, I want to delete the file using a HTTP-request.
For now it's just a very simple test form with four questions, just to figure things out. I was very happy to get it to work the first attempt with uploading a pdf-file.
However, when I try to upload a Word-document, instead of the relativeURL Json parses the shareable link rather than the relative Url, which l can't use in the HTTP-request.
Using the same Parse Json scheme on the form output:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
This is the output for a PDF-file, which works for the HTTP-request:
"link": "https://mytennant.sharepoint.com/sites/Group-Test/Shared%20Documents/Apps/Microsoft%20Forms/Untitled%20form/Question/UploadtestWord_%202.pdf"
And this is the output for a docx-file:
"link": "https://mytennant.sharepoint.com/sites/Group-Test/_layouts/15/Doc.aspx?sourcedoc=%7B239B2D4E-9712-4562-A910-956D873176D9%7D&file=UploadtestWord_%206.docx&action=default&mobileredirect=true",
Can anyone help me retrieving the relative Url to an office365 file on Sharepoint?