cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Sharepoint reminders

Hi

 

I'm trying to achieve to get reminders for 7, 30, 60, 90 and a custom date.

Below I'm giving a summary of what we got and what we achieved so far (with help from the community) + the error message that got me stuck now.

 

The setup:

 

I have the default document library that has folders in it that will be setup with permissions so each person will only see their department.

 

TORFS_BE_0-1700639531629.png

 

I have created a list view that will show the documents so its easier for them to work in.

There's a column startdate (startdatum) and expire date (Vervaldatum) that is a date/time type 

People will fill in these columns by themself

As an extra column I would like to be able place a Number column so they can fill in a decimal they want. This would be named (Remind me x days before expire)

 

TORFS_BE_2-1700639657079.png

 

The flow that is currently active in detail;

TORFS_BE_0-1700653202358.png

 

"Apply to each" value

TORFS_BE_1-1700653215547.png

 

Compose 1

TORFS_BE_2-1700653229941.png

Compose 2: (this one is causing problems now)

TORFS_BE_3-1700653244884.png

Condition;

Each of these 4 conditions have the same value

 

div(sub(ticks(string(items('Apply_to_each')?['Vervaldatum'])), ticks(string(utcNow()))),864000000000)

TORFS_BE_4-1700653264604.png

 

 

Send an email;

TORFS_BE_5-1700653293119.png

 

 

 

I'm able to save the Flow itself, but when I try to test run it manually I get an error message;

 

TORFS_BE_6-1700653308289.png

 

 

Any changes I could be making to make it all work? 

 

 

 

 

for the column "reminder me in x days" we could/would be using another 'Condition' within the flow with these expressions;

(we didn't get to this point yet to test it out)

As mentioned we would be able to decide manually when we want to receive a reminder.

 

div(sub(ticks(string(items('Apply_to_each')?['Created'])), ticks(string(utcNow()))),864000000000)

int(items('Apply_to_each')?['ColumnName'])

 

 

 

16 REPLIES 16

The reason you're getting the error on that Compose is because you have item instead of items. It should be:

items('Apply_to_each')

 

I'll try to post how I'd build this flow so it's a bit more efficient (only iterate over the items that should have an email sent).


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

Thanks for taking a look into this Flow.

 

I've changed the "Compose 2" to what you suggest but I still get an error message.

TORFS_BE_1-1700664036653.png

 

 

TORFS_BE_0-1700663930431.png

 

Since you suggest to draw a more efficient flow I can wait for it first aswell.

 

 

The error you're getting now would indicate that some of the dates are blank in your Library.

 

Just before I build out the flow - will your Library have the dates and the days for reminder as mandatory (all must be filled in), or are they optional?


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

Yes, the expire date will be mandatory but the last column (remind me x days before expire) (type = number) would be optional as it might be enough for them to have a reminder 7,30,60 and 90 days.

Ah - so the reminder will go out always when it's 7, 30, 60 and 90 days before the expiry date. And in addition, if they add a number, it will send a reminder that many days out too. Is that correct?

 

I'm just off to bed now as almost 1:30AM for me, but will try to get something for you tomorrow (if someone else hasn't already) 🙂


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

Yes that is correct! 7, 30, 60, 90 on fixed days before the expire date

The extra column is a reminder that many days before the expire date aswell. (dynamic value)

 

Thanks in advance for looking into this and goodnight 🙂

Hopefully this is what you're after.

 

See full flow below. I'll go into each of the actions.

grantjenkins_0-1700755219507.png

 

Recurrence is set to run daily.

grantjenkins_1-1700755451507.png

 

Get files (properties only) retrieves all the files. Note that I've also set the Top Count to 5000 as it will only return 100 items if you leave this blank.

grantjenkins_3-1700755524518.png

 

Convert time zone converts todays date to the time zone set on your SharePoint site.

utcNow()

grantjenkins_4-1700755591156.png

 

Filter array uses the values from Get files and the following expression to check the different reminder periods including the optional reminder users can set themselves. Note that you will need to paste the expression using Advanced mode.

@Anonymous(
  equals(addDays(item()?['Vervaldatum'], mul(int(string(coalesce(item()?['RemindMeXDaysBeforeExpire'], 9999))), -1), 'yyyy-MM-dd'), body('Convert_time_zone')),
  equals(addDays(item()?['Vervaldatum'], -7, 'yyyy-MM-dd'), body('Convert_time_zone')),
  equals(addDays(item()?['Vervaldatum'], -30, 'yyyy-MM-dd'), body('Convert_time_zone')),
  equals(addDays(item()?['Vervaldatum'], -60, 'yyyy-MM-dd'), body('Convert_time_zone')),
  equals(addDays(item()?['Vervaldatum'], -90, 'yyyy-MM-dd'), body('Convert_time_zone'))
)

grantjenkins_5-1700755645022.png

 

Apply to each iterates over each of the items in the Filter array (the items we need to send an email for).

grantjenkins_6-1700755669091.png

 

Send an email sends the email including the name of the file and the due date. The expressions used are:

//Email
item()?['Author/Email']

//Due date
formatDateTime(item()?['Vervaldatum'], 'ddd, dd MMM yyyy')

//File name with extension
item()?['{FilenameWithExtension}']

grantjenkins_7-1700755712010.png

 

Below is a sample of the email sent out.

grantjenkins_8-1700755738018.png


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

Thanks for this output of you.

While configuring I have some changes aside from you that I wasn't able to get it.

In the end I was able to Save it, but when testing I get an error on the "Filter Array"

 

I don't know if it matters but i'm using the default library in the Sharepoint and I first created Folders and put files inside it. There are no direct files within the library.

I assume the system is smart enough to look inside of these folders and apply the flow on it?

 

Below a list of the changes on my Flow and the error message I got eventually.

I"ll start showing my flow and note the differences.

 

TORFS_BE_0-1700814183606.png

 

Get Files (properties only)

Basic setup: Pick the correct Site Address & Library Name...

Extra: fill in the "Top Count" you mentioned by 5000 

TORFS_BE_1-1700814228470.png

 

Convert time zone

First item that is different;

-I'm not able to see the "Format string" line to add the value you mentioned. Instead there's "Time Unit" which I was able to select 'Add custom value"

-I've taken the timezone that matches me (UTC +1)

TORFS_BE_2-1700814311915.png

 

Filter Array

 

Second small difference

-On the "From" the value you show is just "value". When I pick it, it shows 'body/value' (not sure if it matters)

TORFS_BE_4-1700814671435.png

Filter Query line -> I basically copy paste the line you suggest in Advanced Mode (it turned out an expression after doing that)

 

TORFS_BE_5-1700814744483.png

 

 

TORFS_BE_3-1700814568623.png

 

Apply to each

3rd small difference

It shows "body/value" instead of just 'value' as on ur part (not sure if it matters)

TORFS_BE_7-1700814954496.png

I'm able to pick just 'body' but as soon as I save it, the changes to 'body/value'

TORFS_BE_8-1700815008477.png

Send an email (V2)

4th difference

I'm not able to add these the way you did.

If I place it as an expression, it becomes like this.

Did not get to this part yet to test ofcourse..

 

TORFS_BE_9-1700815080857.png

 

Eventually when I saved the Flow and tried to run it manually I got this error message on the Filter Array part.

TORFS_BE_10-1700815274076.png

 

 

Thanks in advance to have a look of my errors being made and trying to making this work.

 

 

 

 

 

 

 

Can you try switching back to the Classic designer and see if that allows you to get it working based on my suggested solution? There are still some bugs with the new designer that cause some unexpected errors, etc.

 

grantjenkins_0-1700900741634.png


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

I have tried it on the classic mode, but sadly the error message I've given in my post above remains on the Filter Array part.

 

On the classic mode, all items are named correctly as you suggested.

Hi @grantjenkins 

 

Have you got another idea what could be the cause of the error here?

Anything else I can provide you?

 

Thx!

After switching to the classic designer, did you re-do the Filter array? I'd suggest doing this to see if it resolves the issue as have seen multiple people have issues with the new designer adding body/value and it causing an error.


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

Yes, i've tried to re-do the Filter Array but the error remains the same.

I even tried to manually type it, same problems.

 

 

Best regards

Brian

Hi @grantjenkins 

 

Shall I re-post the error I get in another thread to see if someone else might know an answer?

 

 

Best regards

Brian

Only thing I can think of is that some of the internal names of your columns are different to what you've used in the Filter array expression. Can you confirm that your internal SharePoint Column names are the same as what you've used?


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.

Hi @grantjenkins 

 

I did post on another topic and someone pointed me saying that there were files/folders with no "Vervaldatum".

Because I didn't do it on these Folders this was the problem. 

As we got one step further, we're now at the part emails being sent out.

But, im getting spammed by emails now... which is not the thing we want ofcourse.

 

Only one email should be triggered instead of 4-5

 

TORFS_BE_0-1702280372581.png

 

Is there a way we could only get one email as soon as the expiry date gets triggered? 

 

 

 

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 (871)