cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rnavrot
Helper II
Helper II

Comparing the Planner Data between my previous pull and my most recent

Alright,

 

I am forever working on Planner.

 

I am attempting to build a sure-fire way to ensure that all Planner Cards on my Main Task List are duplicated into their sub-plans.

 

I have a decent system that is crippled by the number of connectors and constant 'Invalid Credential' errors.

 

So, my ex-programmer co-worker suggested a different approach: to regularly (every 10min?) pull ALL Planner Tasks in the Main Task List and compare this data to the prior pull.

 

Now, I have a button that lists all tasks in the Task List and inputs them into an Excel table. 

 

Next, I want to put this table aside for the next Flow to reference it. How do I 'move' the data from the old table somewhere else so I can reference it to my new table? In my mind, I imagine that step 1 is to move Old Table to New Location, then using this Flow to populate New Table in the prior location of Old Table. 

 

THEN I will need to figure out how to filter/compare the differences and create a Card (in the correct spot) for every difference AND close out any card that does not exist in New Table.

 

The idea is young, so messy.

 

Can anyone please help me figure out how to move this table elsewhere to temporarily 'store' it for reference to my new table?

 

Thanks,

-Ryan 

15 REPLIES 15
takolota
Multi Super User
Multi Super User

Why not…


When a task is created in the Main Task List (a trigger condition for that plan or bucket id)

 

Pull the sub plan(s) tasks. Either filter by plan or bucket id.

 

Use a Filter array to check if that sub plan contains the new task (if not by id, then maybe by title or some other identifier).

 

Then a conditional where if the length of the Filter array results is greater than 0 (contains the new task)

Then update the task with the task title/id returned in the Filter array

Else create a new task in that sub-plan plan or bucket.

rnavrot
Helper II
Helper II

Hmm, let me explain our architecture better.

 

We have 3 Main Task Lists where each of the 3 teams divvies out assignments.

 

We have ~ 100 Task List Plans - 'sub-plans' - that act as destinations for duplicates of any card created in the Main Task Lists.

 

When a card is created (using the agreed-upon syntax) my existing Flow will find the sub-plan in the title and recreate the card there.

 

I am not feeling it will be easy on the Flow to pull all tasks in each 100 sub plans. Not sure. I can give that a try.

 

Using Filters to compare pre-existing tasks is a good idea.

 

I am not sure about the Greater than 0 idea - does this apply to situations where there are LESS than 0? Like, maybe on this last run 2 cards were completed, therefore removed, so wouldn't there be less results in that case?

 

Thank you for the ideas, I will see what I can do with them.

 

-R

@rnavrot 

 

This is sounding more & more like something that should be in a SharePoint list in a card / kanban type view. Then you could just use a single or multi choice column to select one of the 100 sub plan labels. Then create a different card format list view for each sub-plan.

rnavrot
Helper II
Helper II

I do not have the office clout to suggest a migration from Planner. Unfortunately, I am stuck working with what already exists.

 

I am struggling to get the filter to detect the already-made cards.

 

Essentially, the first pass re-creates any card in the Main List that's completion is not 100.

 

Then, I need the Plan ID as my switch (because there are two more plans to integrate into here).

 

Then, my filter does not appear to pick it up.

 

rnavrot_0-1659734861025.png

 

rnavrot_1-1659734872473.png

 

 

rnavrot_2-1659734891495.png

 

If you can see what is going on here, please let me know. Essentially, once the Flow runs through all cards at 0% complete, it begins to run through them again creating duplicates in my Excel sheet.

 

Thanks for the continued support. 

 

-R

 

takolota
Multi Super User
Multi Super User

@rnavrot 

 

Can you post some pictures of the issue from a flow run?

 

If by “filter doesn’t pick it up” you mean it’s not returning anything matching your codition, then you may need to check the formatting of the percent complete value to make sure it matches exactly & whether it is in string or integer form.

You may alternatively be able to use some kind of status is not equal to Complete condition.

rnavrot
Helper II
Helper II

Here is my issue:

rnavrot_3-1659986426156.png

 

Essentially, the Apply to Each will run indefinitely. It seems to begin populating the table with tasks that 'item percent complete' is not equal to 100.

 

Here is the Excel destination table, blacking out the client info.

 

rnavrot_4-1659986804917.png

 

There are a few problems...

 

As you can see via the duplicate detection highlight, after we reach the end of the list the Flow seems to start back over at the beginning of this list. I stopped this one, but it will run multiple times if I let it.

 

Next, it seems like I can only pull the notes from the 1st Card to input them as notes for the rest. This looks like an easier fix, hopefully I can figure that one out while I am here too.

 

Essentially, it seems like the Flow will not filter out inputs that are already on the table. I want this Flow to read this table (or another table?) to check if these tasks already exist. If so, update them if they need it. If not, to re-created them.

 

Please let me know if any more questions.

takolota
Multi Super User
Multi Super User

@rnavrot 

 

One of your earlier pictures shows a second loop inside your 1st Apply to each loop.

And that’s probably because you pulled the Task Id in the 2nd Filter array condition from Excel instead of from the previous Filter array action.

30DB5E03-28DD-479C-883E-7ECD02470E03.png

Remove that Excel value & remove the second Apply to each loop related to it.

rnavrot
Helper II
Helper II

It looks like your latest suggestion solved my issue with the description. The Flow is correctly pulling the unique descriptions now.

 

Still looping over after it has gone through them all, creating duplicates. I am tackling this next.

 

I have simplified this case (below) based on your suggestions. 

 

rnavrot_0-1659989961096.png

 

 

Please let me know if you have any ideas to stop the infinite loops.

...and thank you!

-R

takolota
Multi Super User
Multi Super User

@rnavrot 

 

Is your List tasks action pulling from a plan with several buckets that each have duplicate tasks?

 

Your switch seems to be checking the plan id but not the bucket id.

Also I would probably just use another Filter Array to get one specific bucket’s tasks. Then it doesn’t have to evaluate a switch for every single task.

rnavrot
Helper II
Helper II

The List Tasks action is pulling from 1 plan with multiple buckets. There should be no duplicates within the Main Task List. The duplicates exist at the sub-plan level (sub-plan being my unofficial term).

 

Once a task is created at the Main Task List level, a separate Flow chases down its Teams Channel and dedicated Plan, and recreates the task from the Main Task List there.

 

This is because we have ~100 Teams Channels, each with a dedicated Plan. We want the relevant items from the Main List to also appear in the Sub List.

 

 

I am not ready to tackle the buckets just yet. Ideally, we could have consistent naming conventions across all sub-plans to ensure we don't need to find these plans buckets based on their IDs. But it does sound quicker to filter by bucket than to create a million unique Switch addresses.

 

Infinite loops are still occurring. Thanks for the feedback.

 

-R

rnavrot
Helper II
Helper II

...solved the looping. 

 

Here is what I came up with.

 

rnavrot_0-1659995510717.png

 

rnavrot_1-1659995534730.png

 

 

rnavrot
Helper II
Helper II

I have got a little further, but still need help.

 

I have got the initial part of this to create any missing tasks and ignore and existing tasks.

NOW, I need to filter out tasks on the Excel table that weren't in the latest Planner pull (meaning that they are now 100% complete in Planner) so I can remove them from the Excel table.

 

I am as far as filtering out the tasks on the table that are not on Planner. There are 3.

 

rnavrot_0-1660159934939.png

 

In my head, the next step here is to delete any row with the same ID as we just filtered out.

However, I cannot seem to input my ID as a Key Value here. I am not sure what the requirements are for Key Value in Delete a row.

 

Please advise.

 

rnavrot_1-1660160008543.png

 

 

@rnavrot 

Is it not…

body(‘Filter_array_2’)[‘Task_ID’]

???

rnavrot
Helper II
Helper II

I have not yet learned the syntax for writing expressions like you did.

 

Here is what worked for me.

Thank you for the help.

 

 

rnavrot_1-1660163143587.png

 

 

rnavrot
Helper II
Helper II

Alright, I am back with needing help.

 

I have created the Flow to remove rows from the table that aren't in the latest pull. Moving on...

 

Next, I need to recreate these Planner Card entries (1 per row) IF they do not already exist.

 

I need to find the Excel row, find the Planner Plan it is associated with, then check that plan for a card with the same title.

 

rnavrot_5-1660242076788.png

 

rnavrot_6-1660242088666.png

 

rnavrot_7-1660242102353.png

 

rnavrot_8-1660242111452.png

 

rnavrot_9-1660242123021.png

 

My Flows are timing out after about 10 minutes of attempting to go through the Large Apply to Each: Match Handwritten Acc Name with SP Short Names.

 

Unfortunately, since the Apply to Each is so large, I cannot see where inside it it times out.

 

If you have any thoughts, please let me know. Thank you @takolota for sticking around!

Helpful resources

Announcements

Exclusive LIVE Community Event: Power Apps Copilot Coffee Chat with Copilot Studio Product Team

It's time for the SECOND Power Apps Copilot Coffee Chat featuring the Copilot Studio product team, which will be held LIVE on April 3, 2024 at 9:30 AM Pacific Daylight Time (PDT).     This is an incredible opportunity to connect with members of the Copilot Studio product team and ask them anything about Copilot Studio. We'll share our special guests with you shortly--but we want to encourage to mark your calendars now because you will not want to miss the conversation.   This live event will give you the unique opportunity to learn more about Copilot Studio plans, where we’ll focus, and get insight into upcoming features. We’re looking forward to hearing from the community, so bring your questions!   TO GET ACCESS TO THIS EXCLUSIVE AMA: Kudo this post to reserve your spot! Reserve your spot now by kudoing this post.  Reservations will be prioritized on when your kudo for the post comes through, so don't wait! Click that "kudo button" today.   Invitations will be sent on April 2nd.Users posting Kudos after April 2nd at 9AM PDT may not receive an invitation but will be able to view the session online after conclusion of the event. Give your "kudo" today and mark your calendars for April 3, 2024 at 9:30 AM PDT and join us for an engaging and informative session!

Tuesday Tip: Unlocking Community Achievements and Earning Badges

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!     THIS WEEK'S TIP: Unlocking Achievements and Earning BadgesAcross the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. These badges each signify a different achievement--and all of those achievements are available to any Community member! If you're a seasoned pro or just getting started, you too can earn badges for the great work you do. Check out some details on Community badges below--and find out more in the detailed link at the end of the article!       A Diverse Range of Badges to Collect The badges you can earn in the Community cover a wide array of activities, including: Kudos Received: Acknowledges the number of times a user’s post has been appreciated with a “Kudo.”Kudos Given: Highlights the user’s generosity in recognizing others’ contributions.Topics Created: Tracks the number of discussions initiated by a user.Solutions Provided: Celebrates the instances where a user’s response is marked as the correct solution.Reply: Counts the number of times a user has engaged with community discussions.Blog Contributor: Honors those who contribute valuable content and are invited to write for the community blog.       A Community Evolving Together Badges are not only a great way to recognize outstanding contributions of our amazing Community members--they are also a way to continue fostering a collaborative and supportive environment. As you continue to share your knowledge and assist each other these badges serve as a visual representation of your valuable contributions.   Find out more about badges in these Community Support pages in each Community: All About Community Badges - Power Apps CommunityAll About Community Badges - Power Automate CommunityAll About Community Badges - Copilot Studio CommunityAll About Community Badges - Power Pages Community

Tuesday Tips: Powering Up Your Community Profile

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!   This Week's Tip: Power Up Your Profile!  🚀 It's where every Community member gets their start, and it's essential that you keep it updated! Your Community User Profile is how you're able to get messages, post solutions, ask questions--and as you rank up, it's where your badges will appear and how you'll be known when you start blogging in the Community Blog. Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile.     Password Puzzles? No Problem! Find out how to sync your Azure AD password with your community account, ensuring a seamless sign-in. No separate passwords to remember! Job Jumps & Email Swaps Changed jobs? Got a new email? Fear not! You'll find out how to link your shiny new email to your existing community account, keeping your contributions and connections intact. Username Uncertainties Unraveled Picking the perfect username is crucial--and sometimes the original choice you signed up with doesn't fit as well as you may have thought. There's a quick way to request an update here--but remember, your username is your community identity, so choose wisely. "Need Admin Approval" Warning Window? If you see this error message while using the community, don't worry. A simple process will help you get where you need to go. If you still need assistance, find out how to contact your Community Support team. Whatever you're looking for, when it comes to your profile, the Community Account Support Knowledge Base article is your treasure trove of tips as you navigate the nuances of your Community Profile. It’s the ultimate resource for keeping your digital identity in tip-top shape while engaging with the Power Platform Community. So, dive in and power up your profile today!  💪🚀   Community Account Support | Power Apps Community Account Support | Power AutomateCommunity Account Support | Copilot Studio  Community Account Support | Power Pages

Super User of the Month | Chris Piasecki

In our 2nd installment of this new ongoing feature in the Community, we're thrilled to announce that Chris Piasecki is our Super User of the Month for March 2024. If you've been in the Community for a while, we're sure you've seen a comment or marked one of Chris' helpful tips as a solution--he's been a Super User for SEVEN consecutive seasons!   Since authoring his first reply in April 2020 to his most recent achievement organizing the Canadian Power Platform Summit this month, Chris has helped countless Community members with his insights and expertise. In addition to being a Super User, Chris is also a User Group leader, Microsoft MVP, and a featured speaker at the Microsoft Power Platform Conference. His contributions to the new SUIT program, along with his joyous personality and willingness to jump in and help so many members has made Chris a fixture in the Power Platform Community.   When Chris isn't authoring solutions or organizing events, he's actively leading Piasecki Consulting, specializing in solution architecture, integration, DevOps, and more--helping clients discover how to strategize and implement Microsoft's technology platforms. We are grateful for Chris' insightful help in the Community and look forward to even more amazing milestones as he continues to assist so many with his great tips, solutions--always with a smile and a great sense of humor.You can find Chris in the Community and on LinkedIn. Thanks for being such a SUPER user, Chris! 💪 🌠  

Tuesday Tips: Community Ranks and YOU

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!This Week: Community Ranks--Moving from "Member" to "Community Champion"   Have you ever wondered how your fellow community members ascend the ranks within our community? What sets apart an Advocate from a Helper, or a Solution Sage from a Community Champion? In today’s #TuesdayTip, we’re unveiling the secrets and sharing tips to help YOU elevate your ranking—and why it matters to our vibrant communities. Community ranks serve as a window into a member’s role and activity. They celebrate your accomplishments and reveal whether someone has been actively contributing and assisting others. For instance, a Super User is someone who has been exceptionally helpful and engaged. Some ranks even come with special permissions, especially those related to community management. As you actively participate—whether by creating new topics, providing solutions, or earning kudos—your rank can climb. Each time you achieve a new rank, you’ll receive an email notification. Look out for the icon and rank name displayed next to your username—it’s a badge of honor! Fun fact: Your Community Engagement Team keeps an eye on these ranks, recognizing the most passionate and active community members. So shine brightly with valuable content, and you might just earn well-deserved recognition! Where can you see someone’s rank? When viewing a post, you’ll find a member’s rank to the left of their name.Click on a username to explore their profile, where their rank is prominently displayed. What about the ranks themselves? New members start as New Members, progressing to Regular Visitors, and then Frequent Visitors.Beyond that, we have a categorized system: Kudo Ranks: Earned through kudos (teal icons).Post Ranks: Based on your posts (purple icons).Solution Ranks: Reflecting your solutions (green icons).Combo Ranks: These orange icons combine kudos, solutions, and posts. The top ranks have unique names, making your journey even more exciting! So dive in, collect those kudos, share solutions, and let’s see how high you can rank!  🌟 🚀   Check out the Using the Community boards in each of the communities for more helpful information!  Power Apps, Power Automate, Copilot Studio & Power Pages

Find Out What Makes Super Users So Super

We know many of you visit the Power Platform Communities to ask questions and receive answers. But do you know that many of our best answers and solutions come from Community members who are super active, helping anyone who needs a little help getting unstuck with Business Applications products? We call these dedicated Community members Super Users because they are the real heroes in the Community, willing to jump in whenever they can to help! Maybe you've encountered them yourself and they've solved some of your biggest questions. Have you ever wondered, "Why?"We interviewed several of our Super Users to understand what drives them to help in the Community--and discover the difference it has made in their lives as well! Take a look in our gallery today: What Motivates a Super User? - Power Platform Community (microsoft.com)

Users online (5,909)