Hi All,
How can i create an single flow which can attached to multiple lists? Should trigger on item events when happens in multiple lists
Thanks,
Shobha
Unfortunately Flow does not permit a single Flow to be attached to multiple lists and be used in the manner you have described. In SharePoint Designer, a reusable workflow could be used for this purpose but that type of functionality is not yet available in Flow.
As an alternative, consider having a Flow that takes the actions that you want to have performed. You can call/start that Flow from another Flow. So, on each list, have a simple Flow that calls the Flow that performs the work.
Here is a link to instructions for calling one Flow form another.
If this answers your question, please mark your Post as Solved.
Scott
Hi Shobha ,
As @ Scott said, you can call/start that Flow from another Flow for an alternative.
May be you can use the Add a parallel branch to trigger multiple lists.
I don’t know whether It can meet you requirement, you can take a try.
Best Regards,
Zhongys
@Scott , Zhongys
Thanks for your response.
So the first workflow trigger is manual start??
I want to trigger the workflow when an new item is created. As we have lots of sub sites with same list template. So whenever new item is created in these lists, I want to trigger the workflow automatically.
Any suggestion or alternate approach would be appreciated.
Thanks,
Shobha
Not sure if you are still looking for this, but I did find a way to get the same Flow to trigger from multiple Lists, and identify which List triggered it. You use the itemURL to extrapolate the List Name, and Get Lists to go through each List until you find the one you need.
Can provide more detail if anyone interested.
JK
I need something like that. Can you please provide more detail? Thanks in advance.
1. The first puzzle is how to set the trigger – it requires a specific List to be specified. Pick any List, as, strangely, it doesn’t matter what you choose.
2. Next you need to initialise variables to help us search the List GUIDs to find which one is contained within our List item URL.
2a. Get Lists - get all the Lists for your site
3. The actions below search the results of the Get Lists from your site, and use the Index function to identify a match for a List Name within the List Item URL, using this function
• indexOf(variables('varItemURL'), items('Apply_to_each_Find_List')?['Name'])
The Condition returns an integer (>0) if the List Name is found. Then the List Name can be stored as a variable.
That’s it really, now you know which List the item was triggered from, and you can get more details of the List Item.
I use a site column to deploy a column to every list with JSON formatting to display a button. The button action contains the Flow ID to run the above Flow.
Hope this helps.
Hello ,
Can you please share the solution how you achieved using URL ? My requirement is, I have multiple lists and wanted to trigger same flow for more than one list .
Hi. That's exactly what my Flow does. Although you have to choose a specific List in step 1, it still works for other Lists. So I specified 'Work Progress Tracker' List, but I can select the Flow from my 'Tasks' List and it works. Any List on the Site can run this Flow. If I've misunderstood your question please clarify which of my steps aren't clear or provide your own example.
Hi jkic, thanks very much to your alternative solution! I was trying it out, but could you help advise further? So I tried to do your method, so firstly I opened an existing flow (ie. Send a customized email when a new SharePoint list item is added).
Secondly, I tried to try your No. 2 point above which is to add these 3 steps:
However, somehow when I search for such variables it seems I cannot find those and only have 'Initialize variable', and I'm not sure how to find the specific ones 'itemUrl', 'Index', 'ListName' as highlighted above. I'm therefore stuck here. I'm a little technologically challenged - so would be helpful for any further help! Thanks very much.
Hi. Step 1 - 'When a SharePoint List item is added' is not the trigger you should use. Use the Sharepoint 'For a selected item' trigger.
Step 2 - Initialise Variable is the action used which creates the variables for you to store values in later. You can rename the Action by clicking on the 3 dots to the right of the Action name. I renamed all 3 to make it easier to see what they were for. Make sure the type is as shown in my screenshot, and leave the value blank.
Thanks so much jkic! I'm able to do Steps 1 & 2, but can I get some clarification on Step 3, in which you stated in your previous responses?:
3. The actions below Get all the Lists from your site, and use the Index function to identify a match for a List Name within the List Item URL, using this function
• indexOf(variables('varItemURL'), items('Apply_to_each_Find_List')?['Name'])
The Condition returns an integer (>0) if the List Name is found. Then the List Name can be stored as a variable.
- My queries: Does Step 1 & 2 make a trigger, which I now can close, and then implement into other flows?
From your screenshot above, it looks like you had used the 'Apply to each' function (and renamed it to 'Apply to each Find List'), so I 'Added a new step -> New Action' but in the 'Select an output from previous steps' the 'body/value' doesn't show up:
Therefore I wasn't sure if you had applied Step 3 within the same flow of Steps 1 & 2 - or you opened a new flow and applied Step 3 to that? And if yes (to the latter), then could you help?
I'm not quite sure what you're aiming to do with the first question, but the Flow is not designed to be used/referenced in another Flow. The Flow allows you to run this exact Flow from multiple Lists.
Regarding Step 3, apologies, I didn't screenshot the Get Lists action, which follows the 3 Initialise Variable actions. The returns the details of all the Lists on your site. In the Apply to Each you can select 'value' to give you the 'body/value'. I've revised the screenshots in my original post.
Thanks jkic for being so patient with me! I managed to get through Step 3 as per your screenshot, and copy+pasting this exact phrase: indexOf(variables('varItemURL'), items('Apply_to_each_Find_List')?['Name'])
- However, when I tried to save, the message at the top pops up. As I'm honestly not tech-savvy, I'm not really sure what this means.
Q: As for the 'The Condition', which I added as a next action - it seems I can manually put the integer to >0. In your original post, did you mean that this would automatically state this if the 'List Name is found'?
Q: A bit of a dumb question as we're already deep into this alternative solution - how do I ensure that when a new meeting list item has been created (or triggered) in any of these lists, so that an email is sent to certain people (ie. this step I would use the 'Send an Email' function). As at the moment based on my shallow understanding, this solution is just to ensure a same workflow to be triggered in any lists - but it's not yet specified what will trigger the workflow (if that makes sense?)
Thank you so much for your help, I really appreciate it!
Hi
The formula you've copied refers to 'Apply_to_each_Find_List'. Your apply to Each action must be named exactly that for it to work. Yours is just called 'Apply_to_each'. Either rename the Action, or amend the formula to use the correct name.
If the List name is found, Set Variable will set varIndex to a value greater than zero, so then the Condition returns true.
No such thing as a dumb question...if I understand you want an email to be sent to people when an item is added, and this should work on several Lists. My solution was deployed as a button displayed next to each List item. Users added a new item then clicked a 'Request Approval' button, which appeared/disappeared depending on the Status of the List item. The button is effectively a bit of json formatting which presents as a button and has an action to run the Flow. If you want to run the Flow (send the email) automatically this might not be the right solution. I'm just thinking how it might be adapted.......I see now why you used the 'When a new item is added' trigger, but that limits you to the List specified. Probably depends how many Lists you have to do this for, but the only thing I can suggest is creating parent Trigger Flows for each List which all call the same child Flow (which sends the email). Alternatively you could Schedule a single Flow which checks all Lists for new items (Get Lists, followed by Get Items in an Apply to Each loop) and sends an email. That's probably best if it doesn't have to be 'real time'. You'd need to consider limits on running Flows before deciding Frequency, but e.g. every 15 minutes could work.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages