web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Scheduling multiple Ou...
Power Apps
Answered

Scheduling multiple Outlook Events in bulk

(1) ShareShare
ReportReport
Posted on by 102

Hello PowerApp Gurus, 

 

Hopefully this is a simple question for you.

I am trying to put together an app that helps to add task due date reminders to user's Outlook Calendars. My datasource is a sharepoint list, i am using  2 columns: Title, Due Date. My app pulls the list, allows users to select events with a checkbox, and then by clicking one button I want them to be able to add all selected to their calendar. I am able to schedule Outlook reminders for  one event at a time. I did the setup where once user selects multiple events they want to add - they are added to a collection (EventCollection). I now need to loop through collection items for the scheduling. I am clearly missing something because instead of scheduling an event for each item, my code is scheduling multiple events (Oulook meetings) for one of the items. If I have item 1 and 2 selected – it schedules 2 meetings for item 2, if I have 1, 2, and 3 selected- it’ll be 3 meetings for event #3).

Can you please help me fix it? 

ForAll(EventCollection,
 Office365Outlook.V4CalendarPostItem(
 LookUp(
 Office365Outlook.CalendarGetTables().value,
 DisplayName = "Calendar"
 ).Name,
 EventTitle.Text,
 DateAdd(DateTimeValue(
 DataCardValue.SelectedDate &" "&"08:00AM"),
 TimeZoneOffset(),
 Minutes
 ),
 DateAdd(
 DateTimeValue(DataCardValue.SelectedDate &" "&"09:00AM"),
 TimeZoneOffset(),Minutes
 ),
 "(UTC) Coordinated Universal Time",
 {
 body: "This is an auto-scheduled reminder",
 importance: "high",
 reminderMinutesBeforeStart: 30,
 isReminderOn: true,
 showAs:"busy"
 }
));

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @ogend ,

     

    Your formula invoked the value of the control instead of the value in the collection(EventCollection).

    So, you should use collection value instead of control value.

    For example: If you have a column named 'Col1', you should use 

    ForAll(EventCollection,
     Office365Outlook.V4CalendarPostItem(
     LookUp(
     Office365Outlook.CalendarGetTables().value,
     DisplayName = "Calendar"
     ).Name,
     ThisRecord.Col1,...
    ))
    

    instead of 

    vxiaochenmsft_0-1640831627191.png

     

    Best Regards,

    Wearasky

     

  • ogend Profile Picture
    102 on at

    @v-xiaochen-msft Thank you so much, it works now!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard