web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Duplicatable Task Chunk
Power Automate
Unanswered

Duplicatable Task Chunk

(0) ShareShare
ReportReport
Posted on by

I am using Planner to and Flow to automate workflow to increase efficiency and stop jobs from falling through in certain locations. After a while, I figured out a method to actually check if a SPECIFIC task planner is complete (WHY is this not an existing task already? A trigger for ANY task complete exists, but not Specific 😐 ). Anyways, I have 26 specific must have, and already trimmed as much as possible, steps in a job workflow. I am using to C# and c++ programming, and we have functions/methods there to take a chunk of steps into a single step. How can I do that with this so I can reduce the work production time from up to a week down to maybe an hour or two- while also reducing the complexity of the code.

 

FlowToDuplicate.PNG

(Note: I did fix setting variable to itself)

 

I used a single variable "NextTaskStatus" so I did not have to keep making a new variable and then having a giant list of variables being wasted when 1 can do its job; either way would take a whole task slot. I set NextTaskStatus to "Get A Task->Percent Complete", and then pause for 20 seconds so that computation is not wasted doing 60 checks in a few seconds. The Create Planner Task could stay out of said 'function/method', but would be nice to make as a single 'create task and wait till task complete'/'CreateWaitPlannerTask' method.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Do you want to check if a new task has been completed?

     

    Please share more details on your scenario.

     

    I have created a flow likes below to get notified when a new task has been completed.

     

    Trigger the flow by a button and add a text input control.

     

    Initialize an integer variable named as Test.

     

    Create a bucket, then create a task. Specify the task title with the button input.

     

    Then add a do-until loop with its condition configured as variables(‘test’) is equal to 100.

     

    Within the loop, add a delay action (1minute delay), then get a task. And set variable action to set its value as dynamic content Percent Complete from the previous action.

     

    Under the loop, add action send me a mobile notification.

     

    Images for your reference.

    1.PNG2.PNG

     

    Best regards,

    Mabel

     

  • Community Power Platform Member Profile Picture
    on at
    My code works; it creates a task and waits for the specific task to be completed. What I am here for, is how I can now take this set of actions and shrink it down because I have a 20+ tasks in the flow that have to be checked, and it is excessive to have to manually go and create the same chunk over and over again. Is there a way i can make some kind of method/function similar to C# where you combine a bunch of lines of code, down to a single line to call- although in this case, it would be flow tasks being condensed. This would specially need to be important and extremely useful if I have to make an alteration to ALL 20+ of these to add mobile notifications or specific email notifications.
  • v-yamao-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Please consider using action List tasks.

     

    The following flow for your reference:

    1.PNG

    Best regards,

    Mabel

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard