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 / Creating multiple plan...
Power Automate
Unanswered

Creating multiple planner tasks (with different due dates) when assigned a task.

(0) ShareShare
ReportReport
Posted on by 14

I am trying to create multiple planner tasks in different buckets with different due dates and checklist items while keeping the same title, assigned person, and notes. 

 

I am able to set up the trigger but the outputs "fail" when I test it. Is this possible?

Categories:
I have the same question (0)
  • Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    It sounds like it should be possible. Have you set up a flow to test adding a single planner task? That would be the first step.

     

    Once you have a single task working then you could either have others run after or in parallel set up with your requirements.

     

    Can you post your flow and the error you recieve alongside where it fails?

  • JazmineSS Profile Picture
    14 on at

    I'm no expert with Power Automate so I could just be doing this wrong. Please share guidance if you know how!

    JazmineSS_0-1665178045572.png

     

  • Verified answer
    Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    Hi

     

    So you don't need the apply to each, as this is triggering on a single task.

     

    You only need to have the Create a Task action after the trigger if you're using this to assign set tasks to others based on "a task" being created for you. You can add one after another, or in parallel as seen here. 

    CraigStewart_0-1665179735822.png

     

    This doesn't take into account what the task is, so any task that you are assigned will trigger this flow. Maybe that's what's required, but you could add in a condition after the trigger to help decide if this created task requires new tasks created. You can get the bucketid and other information by triggering the flow once before adding condtions and checking the output of the trigger in the flow run.

     

    CraigStewart_2-1665179920915.png

     

     

    CraigStewart_1-1665179848107.png

     

    Let me know if that helps?

     

    Thanks

     

    Craig

     

  • JazmineSS Profile Picture
    14 on at

    Okay, I "kinda" got this to work. I would like all the tasks assigned to me so I will need to include the condition- I didn't before and once I was assigned something in a different bucket the tasks being created were endless haha.

    1. If I only want to create tasks if a task was added into a certain bucket how would I go about choosing a value for that condition?

    2. I also would like to have different due dates for each task, for example: 2 weeks or 6 months after the due date. How would I go about doing that? 

     

    Thank you for all your help! This is very informative 🙂

  • JazmineSS Profile Picture
    14 on at

    !!! I figured out my first question. But still stuck on my second. This is how I was going about it but it failed because the expression wasn't correct.

     

    JazmineSS_0-1665524368675.png

     

  • Verified answer
    Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    This expression should do it and add 14 days to your original task date

    addDays(triggerBody()?['dueDateTime'], +14, 'yyyy-MM-ddT00:00:00Z')

  • JazmineSS Profile Picture
    14 on at

    YES!!!!!!! It worked!!!! Thank you so much CraigStewart

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard