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 Automate / How to create event fr...
Power Automate
Answered

How to create event from an Excel to Calendar without duplicate events

(0) ShareShare
ReportReport
Posted on by 10

How to create events from an excel to Calendar using PowerAutomate flow, with daily updates, without duplicating events...

This is what I've tested it, but isn't working, since it still creates duplicate events every time the action runs...

 

from the excel I have set a subject, Start date, end date, description.

 

Screenshot 2021-08-11 at 14.00.53.png

 

any help?

P.s.: took this setup from another article.

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @SergioNRP 

     

    Your filter will always have length 0 and will therefore always create an event.  You might be looking to see if the body contains the description, but not the description containing the body.  Try swapping those two dynamic values about and use the contains function instead.

     

    The condition length is equal to 0 is correct.  I.e. if the filter returns 0 matches, create an event.

     

    I did a video about creating events, albeit it's based on a MS Form submission.

     

    Hope that gets you sorted.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

  • SergioNRP Profile Picture
    10 on at

    I've tried that, but doesn't seem to work...

    tried some of your functions, but not lucky here either.

     

    added the update event logic, if the field isn't empty... but doesn't seem to work either, since the only thing it does is create new events, making them duplicated...

     

    Screenshot 2021-08-11 at 18.17.35.png

     

    any suggestions?

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    @SergioNRP 

    i don’t think you’ve understood. Your filter is the wrong way around. Your body will presumably contain the description BUT you’re checking if the description contains the body. It won’t. It never will. So the condition will always evaluate to true.


    Change the filter to check for the body containing the description. 

     

    You should be able to manually check this (literally look at the output of the get events) from the history.

     

    Damien

  • SergioNRP Profile Picture
    10 on at

    hi @DamoBird365 ,

    sorry if this sounds too amateur... but is true...

    you mean this way, correct?

     

    Screenshot 2021-08-11 at 19.32.36.png

     

    if so, the automation still duplicates all events...

    what I want to achieve is to get an event list on excel, with a daily update to check for new entries and populate my calendar with that or update any changed events...

     

    This was looking great a solutions, due to the automatisation, but isn't easy to understand from the start...

    really appreciate your help on this one... thank you.

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @SergioNRP 

     

    I've had a proper look at this one and as the body is an array, the filter array will still always return a length of 0.  So, the correct setup is going to be Subject is equal to Description.  Something like:

    DamoBird365_0-1628705566606.png

    So when I run my version, I get a match and the length will therefore be > 0 as the output of the filter contains an event with a subject matching "PowerBI".

     

    DamoBird365_1-1628705634140.png

    DamoBird365_2-1628705643769.png

     

    Something to note, the condition is equal to is Case Sensitive, therefore you need to ensure that the excel sheet matches the subject in the event by CaSe.  Alternatively, you can wrap tolower() around both expressions in the condition.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

  • SergioNRP Profile Picture
    10 on at

    is working now, much appreciated!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard