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

Take a short Community User Survey | Help us make your experience better!

To ensure that we are providing the best possible experience for Community members, we want to hear from you!    We value your feedback! As part of our commitment to enhancing your experience, we invite you to participate in a brief 15-question survey. Your insights will help us improve our services and better serve the community.    👉Community User Survey    Thank you for being an essential part of our community!    Power Platform Engagement Team  

Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile 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. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!    

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Users online (5,282)