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.

(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.