I have a site script which I am using for multiple site and that script contains a common list which I need for all sites. Here I am facing one challenges here to run the power automate.
When I have created a new site, the list is by default created for all site collection. Now I want to run my power automate in list item added .
I want to run power automate for that particular list which I have created through script. Could anyone please help me how to achieve this?
ok. Is there any way to set site address dynamically? Actually using Site script, I have created 100 sites with same site template and I have a document library in all 100 sites with same name but I need to run PA for all document library.
Is it possible to use one PF for all site collection document library ?
Here what I did, I have created a column and it will trigger PA when user click on custom button. And I have passed parameter here like site URl and Item ID. But I don't understand here, how to capture that I/P in PA and use the same site URl inside PA.
Hi @rswain ,
Is the PA flow going to have a SharePoint trigger connected to the document library?
If so, I dont see a way to do this apart from the link I provided earlier to edit the PA flow template programmatic.
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
Yes eric. I need to create a site template though site script and I have done that. but I have a document library which also I have created through site script, however I need to run a PA in document library.
Hi @rswain ,
If you need to point your flow to the new list, you can just modify the trigger and update the properties. Be aware of breaking references in your flow.
If you are wanting to do this automatically, its a bit more difficult. See here.
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
I have created a PA but its triggered when site being created but I need trigger a flow in list item added.
Hi @rswain ,
So you want to include the PA flows as part of a template of objects within a site template?
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn
Dear eric, Thanks for your time.
Actually my requirement is like, I have prepared a site template which will execute when someone create a new site and this script contains list, libraries and content type which will create automatically.
I have a X list which will create automatically once the script executed successfully but I want to run a power automate for X list in each site collection.
But which one you suggested that seems, it will work but how could I find the site name in get Lists step as this should come dynamically.
Hi @rswain ,
You could lookup the lists in the new site and reference the Name of the list like below.
Alternatively, you could use the SharePoint API _api/web/lists/getbytitle("List Name"). Here is some details.
--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up
Connect on LinkedIn