cymorg
cymorg

Reputation: 554

How to get the file name from a Power Automate "When a HTTP request is received" trigger action

I have a Flow with a trigger action of "When a HTTP request is received". When I post a single file to the trigger I can save it to SharePoint, as below, with the triggerBody() providing the file content.

Currently I'm using a hard coded string as the file name and it works fine, but how do I get file name from the posted file? MyFlow

Upvotes: 0

Views: 2646

Answers (2)

Uladzislau Bayouski
Uladzislau Bayouski

Reputation: 1

You can do this with HTTP Response Headers, if your server side sets that header 'Content-Disposition': f'attachment; filename="{file_name}"' (this is in Python)

Upvotes: 0

Siddique Mahsud
Siddique Mahsud

Reputation: 1453

This issue bothers me a lot, but not being able to retrieve the filename directly from the file data value, so I have posted a separate object for the fileName

This is an old question, but the below post might be helpful for the community. Upload a file to SharePoint document library using Power automate Flow

Thanks

Upvotes: 0

Related Questions