cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
smpa01
Advocate II
Advocate II

Debugging sharepoint automated flow

I have created an automated flow as below. I am the owner of the sharepoint as well as the admin of the PBI workspace.

smpa01_0-1690829683219.png

The flow is triggering as desired when I add or modify any file within the sharepoint folder.

But when other users make modifications within the sharepoint folder, it does not trigger the flow.

The other users are members of the sharepoint and has no access to PBI Workspace whatsoever.

 

@lbendlin @v-liwei-msft @v-xiaochen-msft 

15 REPLIES 15
lbendlin
Multi Super User
Multi Super User

There are a couple of issues here.  "Refresh a dataflow"  does not do what you think it does. It requests a dataflow refresh, but does not wait for completion.  Same for the "Refresh a dataset" action.  You will need to refactor your flow, stopping it at the "Refresh a dataflow"  part.  Then run a separate flow with a trigger of "When a dataflow refresh completes"  - but only when it completed successfully.

 

You must also add debouncers that prevent frequent re-requests of the refreshes. Best case these will be ignored, worst case you get pushed to the end of the queue.

Okay. I did not know that and thanks for that.

However, the issue that is worrying me now is when some1else other than me who is a SP member and has Contribute permission adds file or modifies existing file in SP, it does not even trigger the flow let alone Dataflow refresh.

 

Do you know why is that and how to bypass that?

I think the flow does trigger (you can check via the run history) but it will trigger too often as I described before, with the expected adverse effects.

Good catch @lbendlin for the Dataflow Refresh,

 

@smpa01 You should try sharing the flow directly to the SharePoint list as if it is another user. Basically add the SharePoint list as a owner. Then test and see if the other users trigger the flow.

I specifically ran multiple tests each 30 minutes apart just so there is nothing else that can influence the outcome just to see if modification made by johnDoe triggers a flow automation. The flow history shows/lists each occurrence when the file was added/modified by me at the designated SP folder but it does not show/list any occurrence when johnDoe made changes. The dataflow and dataset respectively takes 8 sec and 1 min to refresh.

@wskinnermctc  Basically add the SharePoint list as a owner - I don't know what are you referring to and how to do this. The trigger in question here is when new files are added or exisitng files are modified in prodFolder.

https://learn.microsoft.com/en-us/power-automate/create-team-flows#add-a-list-as-a-co-owner 

 

See the instructions at the link or just look at the photos below.

 

Add Owners to FlowAdd Owners to Flow

 

Add List as OwnerAdd List as Owner

@wskinnermctc  I have added johnDoe as owner (with the hope of that his actions triggers the flow) as I could not add the shrepoint folder as the owner.

 

However, the flow does not trigger even after after adding JD as the owner. JD does not have access to PA workspace as well as to PBI workspace.

 

If some1 can please point me to the correct direction would be gr8. To summarize, I have multiple users for a SP and I want the flow to trigger as and when each user adds new file /modifies existing file in a SP folder.

 

Thank you in advance.

I don't understand @smpa01 why you couldn't add the SharePoint folder as an owner? Did it not appear as an option in the dropdown?

 

You would have to share it with the library, not just the individual folder. A Document Library is just a List with extra properties, so you would share the flow with the library just like sharing it with a List.

You can't share a flow with specific items in a List similarly you can't share a flow with specific folders in a Document Library.

@lbendlin  while we are still here, can you please elaborate how to do this

 

You must also add debouncers that prevent frequent re-requests of the refreshes. Best case these will be ignored, worst case you get pushed to the end of the queue.

Let's assume you allow (many) users to request dataset refreshes via a flow. The flow must check if the last request was  more than x minutes ago  (lets say five) or (better) if the previous refresh has completed.  If not, then the request must be retracted.

 

The technical implementation can be done in a variety of ways.  The simplest way is to retrieve the dataset refresh history and check if the latest (newest) entry has an end date. If not then that means the refresh is still running, and no further requests should be raised.

My PA skills not at the same level as my PBI skills. Hence, I am having trouble quickly moving through your suggestions.

 

This is what it currently looks like and I am guessing that you want me to make this check in between Get changes for an item or a file (properties only) and Refresh a dataflow. What operation would enable me to check the current dataflow refresh history first and putting all the ternary conditions first prior to make a new refresh req?

smpa01_0-1690901693856.png

 

You would create a custom connector that can run HTTP GET calls against the Power BI REST API

 

Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

That API call can accept a $Top=1 filter.

Thanks !!! but sounds like a lot of work. I wish there was already a custom connector for REST API that works on the workspace; then I could have made a callback at an interval through PA to refresh the PBI dataset utilizing the connector and store the data to a SP folder and utilizing the callback dataset to make the check prior to requesting a refresh.

If this is important to you please consider raising a new idea (or voting for an existing one) at https://ideas.powerautomate.com/d365community/forum/086dd68e-597f-ec11-8d21-0022482e8f9f

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

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!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

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  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

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.    

Updates to Transitions in the Power Platform Communities

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

Users online (992)