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

Create Event in Outlook Calendar based on an expiration date in a SharePoint list - How can I prevent duplicate events?

I am attempting to create an event in my Outlook Calendar based on an expiration date in a SharePoint list. So far, I was able to create a flow that adds the event correctly, but continues to create duplicate events. How can I prevent it from creating duplicates?

 

TKLR_83_0-1619454576495.png

 

TKLR_83_1-1619454583162.png

 

 

3 REPLIES 3
abm
Super User
Super User

Hi @TKLR_83 

 

Before you adding the event you could check the record already exists by using Get events actions step.

 

image.png

 

Above to get the total count use the below expression

length(body('Get_events_(V3)')?['Value'])
 
Then check the length is zero then add the event or ignore it. You may need to extend the Filter Query by using the dates as well (Start and End).


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
TKLR_83
Frequent Visitor

Is there a way to prevent duplicates for a similar flow to group events? (As there is not an option to get events from the group calendar)

 

unnamed (1).pngunnamed.png

Hi @TKLR_83 

 

You need to use the Graph API to get the group events.

 

List events - Microsoft Graph v1.0 | Microsoft Docs

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,853)