cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Outlook event added, updated or deleted triggering multiple times

Hi everyone, does anyone have any suggestions why the Office 365 Outlook trigger for "when an event is added, updated or deleted (V3)" would be triggering multiple times event for the same event?

 

e.g. I create an event on the calendar, the flow runs twice (receiving the 'addded' action type each time). Similarly if I update an event (with the 'updated' action type). If I delete an event it's a little different, one run sees the 'updated' action type and the second is 'deleted'.

 

Not sure where to look next so all help welcome. Thanks.

11 REPLIES 11
v-duann-msft
Community Support
Community Support

Hi @Anonymous 

 

Thank you for posting.

 

According to your description, you would get two flow results while using ‘when an event is added, updated or deleted (V3)’ action. If any misunderstanding, please kindly let me know.

 

I tested and the get the exactly same result as yours. When I analyze the flow log, I notice the tags for these three operations are separated.

v-duann-msft_0-1616049379828.png

 

Thus, this should be product limitation for this action. Although I can see two processing in run history for the same event ,but I will only receive one result if I add send email/post message action after ‘when an event is added, updated or deleted (V3)’. I believe the flow run only once but the calendar graph API called twice. So wo got this weird behavior.

 

If you don’t want get the history twice. I recommend you use ‘When a new event is created (V3) ’; ‘When an event is modified (V3)’ separately instead. It will generate flow history once.

v-duann-msft_1-1616049379838.png

https://docs.microsoft.com/en-us/connectors/office365/

 

Hope the content above may help you.

 

Thanks

Anna

Anonymous
Not applicable

Thanks @v-duann-msft for the thoughtful reply. Unfortunately I don't think using the added and updated triggers will capture the 'deleted' event.

 

That said, I'm now receiving notifications on the original trigger very intermittently. Something strange is going on for sure. I've contacted support, will see what they have to say.

obmb
Frequent Visitor

Anyone has solutions for this issue? I have the same issue 

ericwhitley
Advocate II
Advocate II

The duplicate triggers for New Events (ActionType = "added") is one of many bugs with this connector.  In my case it happens about 20% of the time and the "Date" value is always exactly the same.  This connector no longer gives us the "lastModifiedDateTime" property either so there's no way to tell which is more recent. And when the two triggers come in, almost all of their properties are the same except the "id".  But the "iCalUId" property is the same.

 

Here's what I'm doing to avoid creating duplicates in my destination site:

 

1. Add a Delay for a random amount of seconds before searching for an existing entry in the destination site. This allows one of them to be processed ahead of the other since they came in at the same time:     rand(5,60)

 

2. Search for a matching request by iCalUId:      iCalUID eq 'triggerOutputs()?['body/iCalUId']'

 

3. For Single day events that will return an exact match.  For Recurring events the iCalUId property is the same, so this returns a list of items.  You need to compare the Start and End times to ensure its the entry you want. But the format of the date field in Sharepoint is different than what's returned by the connector so you have to format them equally:

 

formatDateTime(triggerOutputs()?['body/startWithTimeZone'], 'MM-dd-yyyy HH:mm:ss tt') is equal to formatDateTime(items('Apply_to_each')?['StartDateTime'], 'MM-dd-yyyy HH:mm:ss tt')

AND

formatDateTime(triggerOutputs()?['body/endWithTimeZone'], 'MM-dd-yyyy HH:mm:ss tt') is equal to formatDateTime(items('Apply_to_each')?['EndDateTime'], 'MM-dd-yyyy HH:mm:ss tt')

 

(You may need to change the 'Apply to each' , 'StartDateTime' and 'EndDateTime' references.)

 

Now the hard part:

 

4. We need to figure out which trigger is the most current.  For that we compare the "id" of the trigger versus the one we stored in our destination site. (I created a field called "eventId" to store this value.)

 

triggerOutputs()?['body/id'] is greater than items('Apply_to_each')?['eventId']

 

** This is a mere text comparison and it actually works most of the time, but not 100%. I need to figure out how to convert the id's to numeric values to do that. Any ideas?

 

If the current event is more recent than the existing one we found, then update it.

 

 

I've noticed up to 4 "update" triggers from a single manual change in outlook.  And in some cases we'll get multiple triggers without any manual changes.  This is documented as "internal Exchange processing" in the Connector help:

https://docs.microsoft.com/en-us/connectors/office365/

 

The help also says we should be able to use the ActionType property to "ignore unnecessary updates".  But almost everything comes in as "update" so how do we know if it's a manual change or just internal processing? Is there another indicator returned by the connector that I'm missing?

I added a workaround, see above.

D_i_G_i_T
New Member

Well I was looking for a solution to my problem but I can see that this error is running for more than a year now. It's incredible.


What you can do to prevent the concurrency and having to manage which running flow is the right one, is to disable the trigger concurrency in its settings.

drkmccy
Helper I
Helper I

This connector is either getting updated without versioning or there are changes happening in Exchange that are now contrary to several posts above. I find the following:

  • Turning off concurrency control or dropping it to 1 does not resolve it.
  • The id as well as the iCalUId stay the same
  • lastModifiedDateTime is there although I can't see how this could be used in a trigger condition

I think what needs to happen is that MS should not let Exchange online pass through to Power Automate until it's done with its internal processing so it passes through a single added, modified or deleted event. Surely if should know that if it needs to do processing on it then it's not ready to be used in a flow?

Exactly! The problem is with Outlook/Exchange triggering the connector to run when it's unnecessary.  I wish MS would fix this.

Blackpajamas
Regular Visitor

I've been struggling with this sam issue for some time now. Has anyone found a solid work around or had any indication that MS is aware of this and working on a fix?

That did the trick. Setting the trigger concurrency to 1 prevents the trigger from firing twice!

Helpful resources

Announcements

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!

Tuesday Tip: Getting Started with Private Messages & Macros

Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   This Week's Tip: Private Messaging & Macros in Power Apps Community   Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member!   Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros:   Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate)  Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)

Users online (6,279)