2

I have a use case where I would like to create a button in another application, that when clicked, will trigger a Flow or something, that will lead to the creation of a Folder in a specific document library in SharePoint.

Could such a use case be achieved with SharePoint Online and/or Flow?

Regards

2 Answers 2

1

You can use an HTTP Trigger for Flow that allows your application to trigger your flow using that address.

But, if you just want to create a folder in SharePoint from your application then CSOM is your friend. If your app is .NET then you can add PnP Core via NuGet and creating a folder should be pretty easy: https://www.nuget.org/packages/SharePointPnPCoreOnline

You can make similar calls via REST as well: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest

1
  • Can you point me to any resources on how I can wire up the button on the target application? e.g. is it simply a matter of an anchor tag that has href="flow request url"?
    – Ushka
    Aug 7, 2019 at 15:59
0

You can build a PowerApp and add button within it which will run the Microsoft Flow. (You can also embed the PowerApp within SharePoint page if you want).

You can create a new folder using Send an HTTP request to SharePoint in Microsoft Flow.

Below articles will help you to start with this:

References:

  1. Start a flow in a canvas app.
  2. Microsoft Flow – Create a Folder in a document library using Microsoft Flow.
  3. Working with folders and files with REST.
  4. Use the PowerApps web part in SharePoint.
3
  • I want to add the Button to trigger in an action from another application (not inside Flow or a SharePoint page).
    – Ushka
    Aug 7, 2019 at 15:55
  • May I know which application particularly you are trying to build? Aug 7, 2019 at 16:44
  • It is another website, a custom website, and I want to add a HTML or JS button there - that when clicked - will trigger the flow which then goes off and creates a folder structure in SharePoint Online.
    – Ushka
    Aug 7, 2019 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.