
Announcements
Hi there group,
I'm trying to help a co-worker with a "problem" she has:
She has a list of contracts which will eventually expire. So I made her a document library (so she can store the digital version of the contract), added some extra columns for expire date, contract owner and such, and made a calender view for her. Allready looks pretty neat for her having the files show up on a calendar, based on expire date.
What I kinda promised her (foolish me) was to add logic that would "do something" (send out an email or something) whenever a contract expires or is about to expire. I was thinking about a sheduled flow itterating the library, comparing some dates to trigger an action.
But I immediatelly ran into trouble trying to make that flow: I can't find a function to itterate a document library. To be honest... I don't have a whole lot of experience with Flow. Do most of my work with Perl (yeah I know... old skool)
To get to the point.... please give your thoughts on:
- Is flow the right tool for this job.
- How should I go about doing this (a rtfm (with pointer) is greatly appreciated since this is a learning experience for me)
- Is the Flow portal the only way to make flows? Or can you use an IDE like Visual Studio this.
With kind regards,
Peter
Hi Peter @PeterKaagman , Flow is certainly the tool for this job and it works very well on a document library. I believe you might be able to achieve something with InfoPath but I wouldn't as it's not being developed and is not the future. We have Flow which is great for just this sort of thing.
One of the things with Flow is that when you do the initial recurrence trigger and the the Get items action the dropdown doesn't show you the document libraries, it only shows the list. But you can type in the name of your document library and select to use it as a custom value. I have a flow running to remind the document "owner" that a review is due in 2 days and then if they don't review it a second email goes out on the actual date of the review. The steps for this are as follows with screenshots further down.
adddays(utcnow(),2,'yyyy-MM-dd')We're using that format to make sure the NextReview date from the list and the Compose control are in exactly the same format. Make sure you use capitals for the month. Later on we'll change the date format to (in my case) UK format.
utcnow('yyyy-MM-dd')The screenshots of the steps are below.
Rob
Los Gallardos
1-Recurrence
2-Get items
3-Apply to each
4-Compose 2 Days
5-Compose Today
6-Condition 2 Days
7-Convert time zone
8-Compose an email 1
9-Output Today
10-Compose an Email 2
11-My reviews
12-Emails