Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ngB+NrOimfE5USwkwHOzJP
Power Automate - Building Flows
Answered

Create a task in Planner based on Office 365 Outlook calendar event

Like (0) ShareShare
ReportReport
Posted on 5 Sep 2023 21:30:24 by 2

I am trying to write what I think should be a very simple flow where a planner task is created based on a outlook calendar event that then assigns the task in planner to attendees of the outlook event. This is what I have so far

 

smithj_0-1693949670050.png

 

 

If I take out the assigned user ID the task creates ok. I just cannot get it to assign

 

Any ideas?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 06 Sep 2023 at 04:32:42
    Re: Create a task in Planner based on Office 365 Outlook calendar event

    Hi @smithj,

    If you want to create tasks for individuals, I think you should configure your flow as below:

    vqiaqimsft_0-1693974564985.png

    vqiaqimsft_2-1693974658457.png

    Since the email address is splitted with a semi colon, so I used Filter array to remove the blank string, then loop through the array of attendee email address, create task for each user.

    split(outputs('Compose'),';')
    empty(item())

     

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 06 Sep 2023 at 02:36:02
    Re: Create a task in Planner based on Office 365 Outlook calendar event

    Hi @smithj 

     

    Pls refer the below sample for creating task when an outlook event is created. Here I have used 'When a new event is created (V3)' trigger:

    ManishSolanki_0-1693967669308.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • smithj Profile Picture
    2 on 05 Sep 2023 at 21:30:56
    Re: Create a task in Planner based on Office 365 Outlook calendar event

    this is the error i get:

     

    The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['EmailAddress']' is of type 'Object'. The result must be a valid array.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard
Loading started
Loading complete