cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BBastian
Frequent Visitor

Office365Outlook connector triggering twice when called from a ForEach statement inside a collection

I have a colDatesSelected which just stores the list of all dates selected from a calendar. All i am trying to do is create a Calendar invite for each of the dates using below code: But for each of the dates in the collection I am getting two exact same invites per day.

 

ForAll(
colDatesSelected,
Office365Outlook.V4CalendarPostItem(
vCalendarID,
"Please checkin before proceeding to office",
DateTimeValue(Text(DateAdd( SelectedDates, 7, Hours),ShortDateTime )),
DateTimeValue(Text(DateAdd( SelectedDates, 8, Hours),ShortDateTime )),
"(UTC-08:00) Pacific Time (US & Canada)"
);

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @BBastian ,

There are a couple other posts (which I cannot locate presently) on exactly this. It appears to be a bug - you may have to do this another way.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

This is so annoying. I have a different App made a few months back, where I am using the same logic and there it's working fine.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,324)