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.

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!

@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.

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

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (482)