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

Sharepoint Calendar Notifications Flow

Hi there,

 

I have built an Event Reminder Flow whereby it sends an email reminder when an event in my Sharepoint Calendar is going to happen. I have built it with a substring formula so that the EventDate is equal to the UTCNOW however when I run the flow it sends me all of the events in the calendar i.e. it is not recognising the date in question.

 

My guess is that there is a problem with the substring or UTC formulas. 

 

I have tried making the events in the calendar all day events and a specific time frame and it´s not working. Events are also not recurring, they have all been put in individually. I originally thought it might be because the column EventDate is also taking into account time but it just returned me error when I put this in. 

 

Please help me out. 

 

Thanks!

 

Here is my flow:

 

StuartBoyd7_0-1625224518834.png

 

StuartBoyd7_2-1625224566168.png

StuartBoyd7_3-1625224582763.png

StuartBoyd7_4-1625224603744.png

StuartBoyd7_5-1625224625280.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous ,

 

Schedule the flow to run daily early morning 3am. To test it run flow manually.

 

Please accept this as solution, if this post is useful to solve the issue. It will motivate me to reply for many queries.

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.

View solution in original post

29 REPLIES 29
ArchitectMadhan
Memorable Member
Memorable Member

Hi @Anonymous ,

 

The date format you use for utcnow is "yyyy-mm-dd", but you didnt specified the date format you get from the substring. Please make sure both are having same format. Also without getting all events from the SharePoint, you could have used the filter query option to get list items that are required to send the remainder email.

 

If you feel the above solution works for you, please mark this as solution.

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

Hi there,

 

Thanks for your reply. Can you draw up the formula here? I am not sure how to draw this formula up. 

 

Also, how would I do the filter query option? I have tried to do this but I´m no expert on this and would like to learn how to use.

 

Thanks!

 

Stuart

ScottShearer
Most Valuable Professional
Most Valuable Professional

@Anonymous 

See my example below.  I used Filter Query as suggested by @ArchitectMadhan .  Get items will retrieve only events for today.  Please note that this will not work with recurring events.  Also, note the single quotes in my filter query.  Finally, SharePoint stores dates in a yyyy-MM-dd format.  Finally, you may to make an adjustment for your timezone.

image.png

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Anonymous
Not applicable

Okay, I see what you are doing in the filter query but can you please provide the formulas in text format so that I can copy and paste? Do I also need to edit the substring in the condition? 

 

I need the formula in text to copy and paste into my formula.

 

Thank you for your help!

ScottShearer
Most Valuable Professional
Most Valuable Professional

@Anonymous 

The formulas that I used are shown in the comments section of the Get Items action.

formatDateTime(utcNow(),'yyyy-MM-dd')

addDays(utcNow(),1,'yyyy-MM-dd')

 

If you copy and paste, you'll probably want to remove and replace the single quotes.

 

Also, you shouldn't need your condition - it was checking the date.  With the filter you will only receive items that meet your criteria specified in the Filter Query.  If you use my example, just send an email inside of the loop at the bottom of my Flow.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Anonymous
Not applicable

This is still giving me error... I have tried to change the the "1" in the add days to "0". Still doesn´t do anything...

 

StuartBoyd7_0-1625254752665.png

 

ArchitectMadhan
Memorable Member
Memorable Member

Hi @Anonymous ,

 

The screenshot is not clearly visible for me, could copy and paste the error message alone?

 

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

Hi @ArchitectMadhan 

 

Here you go:

 

The expression "EventDate ge '2021-07-03' and It '2021-07-04'" is not valid. Creating query failed.
clientRequestId: c2812021-ff28-4569-8d44-8cca906f7484
serviceRequestId: c2812021-ff28-4569-8d44-8cca906f7484

 

Thanks

 

Stuart

Hi @Anonymous ,

 

Please check whether the Event Date field is of "Date only" type in SharePoint calendar. 

4.JPG

 like show in the screenshot

 

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
ArchitectMadhan
Memorable Member
Memorable Member

Hi @Anonymous ,

 

If you want to know step by step process to send reminder email using Power Automate Schedule Flow, please follow the steps given in the below link.

https://learningtechnixs.blogspot.com/2021/07/send-reminder-email-for-tasks-nearing.html?m=1 

 

If the above post is helpful for you to solve the problem, please mark it as solution.

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

Hi @ArchitectMadhan 

 

I think you are right, it´s taking into account time as well as the date. Can you please show me how to change the Event Date field to "Date only" type in SharePoint calendar?

 

I cannot find it at all. Is it possible to get rid of the "time" field?

 

Thank you

Hi @Anonymous ,

 

In SharePoint List Settings, you have all the fields and field types, there you go to Event Date field and select the option from Date time to Date only.

 

How to go to list settings :

https://support.microsoft.com/en-us/office/edit-list-settings-4d35793b-246e-42a3-990c-563a83795b7f

4.JPG

If you feel this post is useful for you solve the issue, please accept this as solution.

 

 

 

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

Hi,

 

This will not let me edit the column "End Time" so what I have done is create another column called "EndDate" with the parameters shown in your screenshot and it´s giving me this error still...

 

StuartBoyd7_0-1625480449470.png

 

The expression "EndDate gt ´2021-07-05T00:00:00.0000000´ and EndDate lt ´2021-07-05´" is not valid. Creating query failed.
clientRequestId: c2a2b9b5-b834-4082-adb0-3eba94ec1603
serviceRequestId: c2a2b9b5-b834-4082-adb0-3eba94ec1603

 

I really do not understand why this is happening... It seems that it is still taking time into account...

 

Here is the column settings that I created.

StuartBoyd7_1-1625480520296.png

 

 

Hi @Anonymous ,

 

From the error: The expression "EndDate gt ´2021-07-05T00:00:00.0000000´ and EndDate lt ´2021-07-05´" is not valid. Creating query failed.

 

You need to change only the above highlighted part in red, the first formula of formatDateTime() function. Can you check whether that formula is as shown below ?

formatDateTime(utcNow(),'yyyy-MM-dd') 

 

If you feel this post is useful for you solve the issue, please accept this as solution.

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

Hi,

 

Yes, the formulas I have in this part :

 

StuartBoyd7_0-1625481273074.png

 

Are the following:

EndDate gt ´formatDateTime(addDays(utcNow(),0,'yyyy-MM-dd')) ´ and EndDate lt ´formatDateTime(utcNow(),'yyyy-MM-dd')´ 

 

Here is an example of a calendar event with the new column EventDate added:

 

StuartBoyd7_1-1625481382563.png

I have tried changing the formula date structure to dd-MM-yyyy instead of yyyy-MM-dd but this didn´t work either... 

Hi @Anonymous ,

 

From the EndDate in your calendar item I can see the date is in "dd/MM/yyyy" format. But whatever you are using is in "yyyy-MM-dd" format.

 

Also your formula is totally opposite to what it has to be.

 

EndDate gt ´formatDateTime(utcNow(),'dd/MM/yyyy') ´ and EndDate lt  ´formatDateTime(addDays(utcNow(),0,'dd/MM/yyyy')) ´

 

If you feel this post is useful for you solve the issue, please accept this as solution.

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

This is still not working... I have tried putting dates in with "/" and also "-" and it does not work.

 

Here is the error message:

 

The expression "EndDate gt ´2021/07/05´ and EndDate lt ´2021-07-05T00:00:00.0000000´" is not valid. Creating query failed.
clientRequestId: fbcc5c54-5318-42e3-94ef-99309154e5db
serviceRequestId: fbcc5c54-5318-42e3-94ef-99309154e5db

 

Because of this error, I changed the "/" to "-" in one of the formulas and the following error is given:

 

The expression "EndDate gt ´2021-07-05´ and EndDate lt ´2021-07-05T00:00:00.0000000´" is not valid. Creating query failed.
clientRequestId: c5641e43-6625-47e6-acd0-70a4fa948482
serviceRequestId: c5641e43-6625-47e6-acd0-70a4fa948482

 

Is there any way that I can workaround this? Obviously the filter query is not working. I have seen other forums and they use Compose actions in their formulas? 

Hi @Anonymous ,

 

Here is what you need to do, its the exact scenario. First you change your End Date format in Field settings from dd/MM/yyyy to "yyyy-MM-dd". After that you try the below example.

 

ArchitectMadhan_0-1625482769780.png

If you feel this post is useful for you solve the issue, please accept this as solution.

- Architect Madhan
---------------------------------------------------------------------------------------------
Please click the 'Accept as Solution' button and give thumbs up, if it is helpful to you.
Anonymous
Not applicable

Hi @ArchitectMadhan 

 

I have changed the format to "yyyy-MM-dd" and it still doesn´t work...

StuartBoyd7_1-1625484544049.png

Here is the error message:

 

The expression "EndDate gt ´2021-07-05T00:00:00.0000000´ and EndDate lt ´2021-07-05´" is not valid. Creating query failed.
clientRequestId: 240aceef-2a8d-4694-bd3d-e11f9bf756f1
serviceRequestId: 240aceef-2a8d-4694-bd3d-e11f9bf756f1

 

It seems to still be recognising time... 

 

I have also tried to create a completely new flow and the same error message appears...

 

Can you please advise? Is there any workaround available?

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 (5,581)