Forum Discussion
Get task parameter from the "When creating a task" trigger in Power Automate
Hi all,
I have a question about MS Planner.
I would like to create a Power Automate flow to create a task in a plan B when a task in Plan A has the pink flag.
I have some issues because when we create a task, we cannot use a flag on it. So I would like to create a task, upload it to flag and if it's pink, create the same task in another plan.
Unfortunately, when I use the trigger "When creating a task", I cannot get the parameters of this task I just created. Do you have any hint to do what I want?
Thank you
VArik966 Not using "When a new task is created" trigger.
However, you can use scheduled flow which will run once daily (as per your requirements) OR manual flow on button click. This flow will:
- List tasks from specific plan - this will return AppliedCategories (Pink, Red, Yellow, etc.)
- Then you can use "Condition" action to check the category
- If it is pink, you can create a new task
Check documentation link in above response for all available actions using Planner connector.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
VArik966 As you are creating a task first and then assigning flag to it, you cannot get the flag details while using "When creating a task" trigger.
Unfortunately, Planner connector does not have "When a task is modified" trigger.
Similar thread: Planner Trigger: When a task is modified
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- VArik966Copper ContributorHello @ganeshanap,
Thank you for the answer.
So if I understand, there is no way to solve my issue?VArik966 Not using "When a new task is created" trigger.
However, you can use scheduled flow which will run once daily (as per your requirements) OR manual flow on button click. This flow will:
- List tasks from specific plan - this will return AppliedCategories (Pink, Red, Yellow, etc.)
- Then you can use "Condition" action to check the category
- If it is pink, you can create a new task
Check documentation link in above response for all available actions using Planner connector.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
VArik966 You can submit new feedback/idea on Power Automate Ideas portal OR vote on existing feedback ideas available at: when a planner task modified - search
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.