I have a flow that is triggered when a new Form is submitted and saves the response data in a Sharepoint list. The form has an attachment, so I need to get the attachment into Sharepoint. I followed the instructions here to use the Onedrive path to grab the attachment and then the Add Attachment, but it is not working. I get an error that the file does not exist. I am certain that the path is correct.
Here is the path to the file I am trying to get. To dynamically get the file name I am using the expression first(body('Parse_JSON'))?['name'] in place of the file name, and when I run the flow, below is the output of the get file content action. As you can see, the path is identical to the file path above.:
{
"status": 400,
"message": "The file id '/Apps/Microsoft Forms/Graphic Design Requests/Question/front-at-cleveland-public-library-5-of-31-1_Elizabeth Bentivegna.jpg' is not valid.",
"source": "api.connectorp.svc.ms"
}
Oddly enough, I am doing this exact same thing in another flow with a different Form and it works perfectly. What am I doing wrong? Thanks.
Thank you, this was the answer. Silly mistake on my part.