I am trying to setup a Power Automate Flow that uploads a document from SharePoint to the employee’s confidential folder from a form that is completed.
Everything but the uploading is not working, which is why I think its something with my setup that I’m missing. I’ve tried matching it to the HTTP request on the HTTP docs, but having no luck at all Upload a file to the employee's confidential folder. (hibob.com)
@alexw-shine I've managed to get it working. Thanks to this post. I used this in my http body:
{
"$content-type": "multipart/form-data",
"$multipart": [
{
"headers": {
"content-disposition": "form-data; name=file; filename=Pleasework.pdf"
},
"body": @{body('Get_file_content')}
}
]
}
@plumpdj not yet, I've got Bob and Microsoft investigating
@alexw-shine did you manage to get this working? I'm trying to do exactly the same thing.
@LokeshBysani When doing that I am having the same issue displaying the 400 error
@alexw-shine unfortunately I cannot trigger this API from my machine. But after analysing the image your share and the documentation for API.
I see the content length header is missing in your request in power automate
One advise would be
1. Go to this website. https://apidocs.hibob.com/reference/post_docs-people-id-confidential-upload
2. provide the required details like ID, authorization, File you would like to upload .
3. Select HTTP code as below
4. In Power Automate under HTTP action provide the exact same information in body as you fetched form the step 3. For testing purpose dont pass anything dynamically.
5. Test it and if you see any error then share those details.
@LokeshBysani Flow Screenshot, HTTP 2 is the one that I am having issues with:
HTTP2 Screenshot with the my parameters:
Error I receive is a 400:
@alexw-shine Share more information to get a clear idea
1. your flow screenshot
2. HTTP action. Endpoint and parameters, request body you are passing
3. Error you are receiving from Power Automate when you ran it.
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional