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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

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