I am wondering if it is possible to add a custom control/action for files in a document library in SharePoint. For example, when I select a file or click the ellipsis for a file I get the options to preview, share, copy link, download ,etc... I want to know if it's possible to create my own custom option for this which will trigger a ms flow and pass the file properties to ms flow? To be more specific, I already have a ms flow that automatically picks up files when they are uploaded to sharepoint and copies these files to a different environment. I just need to see if I am able to implement a custom option, when you click that option it will trigger the flow for that file and copy the file to the different environment or if it is even possible to add custom options for files in a document library.
2 Answers
@Omi in a hellcat,
@Murilo Santana has provided a good solution. you may also have a look SPFx ListView Command Set Extension:
It can trigger an HTTP flow:
BR
It looks like you need a flow with the "For a selected file" trigger.
That trigger allows you to select a file in a library to initiate a flow from there - you can also set input options when running the flow. Inside the flow you will then be able to use any other actions you'd like.
You will see this option on SharePoint



