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 / Create a new Planner t...
Power Automate
Answered

Create a new Planner task when previous one is completed with a color trigger.

(1) ShareShare
ReportReport
Posted on by

Hey guys.

 

So I'm trying to build a flow that creates another task after the previous one is completed. Something that's recurring alot. In my instance the tasks labeled with red, should always re-create themselves with the same title.

 

My issue is that whenever I try to base it off a color instead of a title my flow pukes. 

I've tried a few different triggers like Red = TRUE, or appliedCategory = RED but with no luck unfortunately.

Will post these examples below just to clarify. And also "er lig med" means "Equals" in English, and "Betingelse" translates to "Condition"

 

Red = TRUE example

peakz1337_0-1652958134224.png

 

appliedCategory = RED example:

 

peakz1337_1-1652958197978.png

 

The error returned looks like this:

The execution of template action 'Anvend_på_hver' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/appliedCategories/category2']' is of type 'Boolean'. The result must be a valid array.

 

"Anvend_pÃ¥_hver" translates to Apply to each. 

 

 

 

EDIT: I realized that the condition I was using was not the correct one, and everything is working as intended now. 

Now I'm just wondering if there's a way to copy all the existing data from a task. Like description, checklist, comments etc.

 

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

    Hi @Anonymous ,

     

    I'm afraid that you can not get all the existing data from a task.

    We could get description and checklist of a task but not comments.

    https://powerusers.microsoft.com/t5/Building-Flows/Planner-Comment-Flow/td-p/774434

     

    1. Here is my task.

    vyujincuimsft_0-1653291327521.png

    Here is my flow.

    vyujincuimsft_2-1653292406165.png

    vyujincuimsft_0-1661246225825.png

    Result Screenshot:

    vyujincuimsft_3-1653292518570.png

    We could select Dynamic content or use expressions to get the value from the outputs of a Trigger or Action.

     

     

    Best Regards,
    Charlie Choi

  • Community Power Platform Member Profile Picture
    on at

    Hey,

    Appreciate the reply, this looks interresting.

    Will test out your solution and play around with it a bit to see what I can come up with.

    Will return later and mark as solution, if this solves the problem.

  • Community Power Platform Member Profile Picture
    on at

    Hi,

    I tried creating a flow from scratch following your flow. However, the "outputs" tab you have in your "When a task is created" is missing for me.

    peakz1337_0-1653982881702.png

    How do you get this option?

     

  • v-yujincui-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    The OUTPUTS of a trigger or Action needs to be viewed from Flow's run history.

    vyujincuimsft_0-1653985462029.png

    vyujincuimsft_1-1653985516675.png

     

    Best Regards,

    Charlie Choi

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks.

    Right now it does not create another task after the previous one is done. It does get all the outputs right though with the title, description etc. 

     

    peakz1337_0-1653986718076.png

    Seems like the Compose is failing

     

    EDIT: Was a typo from my side. It still doesnt create the task in planner though

  • v-yujincui-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Sorry, the Flow and screenshots are provided to illustrate that we can't get all the existing data from the task, so I didn't add the Create a task Action.

     

    I have created a more complete flow for your reference:

    {
     "id": @{items('Apply_to_each_2')?['id']},
     "title": @{items('Apply_to_each_2')?['value/title']},
     "isChecked": false
    }
    if(triggerOutputs()?['body/appliedCategories/category2'],true,false)

    vyujincuimsft_0-1654053868279.pngvyujincuimsft_1-1654054146780.png

    vyujincuimsft_2-1654054223522.png

    vyujincuimsft_3-1654054527770.pngvyujincuimsft_4-1654054642065.png

    Result Screenshots:

    vyujincuimsft_5-1654054756260.pngvyujincuimsft_6-1654054842480.png

     

     

    Best Regards,

    Charlie Choi

  • Community Power Platform Member Profile Picture
    on at

    Hey Charlie,

     

    First of all, I just want to emphasize that I really appreicate the time and work you've put into this. Especially considering I'm pretty much useless here.

     

    The flow looks amazing, and I wouldnt even have gotten close to this by trying myself. 

     

    However, to the not so great part. For the last bit of time I have tried to build a flow identical to yours. 4 times now to be exact, just to make sure there were no typos. 

    I seem to get an error on the flow as shown below:

     

    peakz1337_0-1654073891943.png

    Sorry for all the gibberish, let me know if you need some translation. 

     

    peakz1337_1-1654073976345.png

     

     

  • Community Power Platform Member Profile Picture
    on at

    Pictures of the rest of the flow if there's anything missing:

    peakz1337_3-1654074124596.png

     

    peakz1337_8-1654075476177.png

     

     

    peakz1337_5-1654074185947.png

    Changed the categories to 1 - 2 - 3 in case youre wondering.

    peakz1337_6-1654074236748.png

     

     

     

     

  • Verified answer
    v-yujincui-msft Profile Picture
    on at
  • Community Power Platform Member Profile Picture
    on at

    Morning Charlie.

     

    The flow is working great now thank you!! I really appreciate the time you've taken to help me through this, and I'm sure the company will appreciate it too. 

    Best of luck, and good day. 🙂 

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard