For all those cards you added after the For Each card in your parent FLO, do you only want those things to happen if the task is started? It looks like it based on the Continue If you added. You’re going to want to add those things in the child FLO after it checks the date and changes the status to started instead of doing that in the parent FLO. The child FLO is being run for every task in your Mavenlink instance, so it needs to be ready to perform that series of actions for any task that passes the Continue If tests.
Also, in the screenshot of your child FLO, you’ll need to add the Continue If card after the Date To String card. Otherwise it’s going to update the task with “started” no matter what day it is.
ID is a fine input, you’ll just need to read the rest of the task info from Mavenlink inside the child FLO with a Read Task card. Personally, I chose to use Task because then you don’t need to read the rest of the task info again since it will all get passed through to the child FLO. See my screenshot below.
To set this up, you’re going to change the Task field from the default String type to the Object type. Do this by hovering over the Task field you created and clicking the little dropdown on the right side of the field that shows up that says “Aa” on it. Then change the type to object.
Once you’ve done that, you can type in fields under the Task object. As long as you match them to the fields coming through from the Mavenlink API, you can drag them from there to use in your process.
Basically, the overall structure of this should be thought of as:
- Parent FLO (the Scheduled FLO) - Read all of the tasks in your Mavenlink instance at one time. Use JSON Parse and Object Get to get the set of task data you’re specifically looking for. Use an Object For Each FLO that will run once for every single task in the big group of tasks you grabbed from Mavenlink.
- Child FLO - Send each task through the correct Continue Ifs to check that it is the correct start date to process the information. Then, after it passes the Continue Ifs, run the task through all of the cards you’d like. The number of times this FLO runs will be equal to the number of tasks there are in your Mavenlink instance. However, it should be quick because most of them will not be on the current date so they’ll all stop very early on.