Forum Discussion
CR-88
Oct 21, 2021Copper Contributor
Fire Azure Logic App using a button from SharePoint Online library
Hello, I'm having trouble trying to create a workflow/logic app. I already tried with Power Automate but we need to change to Logic Apps. I need to fire the Logic App using a custom button in a Share...
DanWatford
Nov 18, 2021Copper Contributor
Hi CR-88
Take a look at https://pnp.github.io/List-Formatting/, specifically the https://github.com/pnp/List-Formatting/tree/master/column-samples/generic-launch-powerapp
In the sample a button is created for each list row to launch a power app. This is done by constructing a URL which includes the ID of the current List Item.
For your case you would construct the URL to trigger your Logic App, passing the ID of the current List Item as a query argument in the URL. Your Logic App will then be able to determine which item it was launched for.