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 / Simple flow help - Rev...
Power Automate
Unanswered

Simple flow help - Review flow

(0) ShareShare
ReportReport
Posted on by 19

Hi - I am new to all of this and have a very simple question

 

I would like to create an auto generated email to a document owner 30 days before expiry of a document to inform them to review content.  Is there a template that can achieve this?  

 

Any help appreciated.

Gareth

Categories:
  • manuelstgomes Profile Picture
    6,643 on at

    Hi @gforber 

     

    Can you define how you define the expiration date of the document? Stored somewhere? A rule in SharePoint?

     

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

  • gforber Profile Picture
    19 on at

    Hi manuel,

     

    This expiration date will be held as a data field in the SharePoint library that will be manually updated

     

    Regards,

    Gareth

  • manuelstgomes Profile Picture
    6,643 on at

    HI @gforber 

     

    I would do the following:

    1. Trigger - select the scheduled option and run it in the frequency you want.
    2. Get all the values that you didn't send an email. You can use an OData query to achieve by doing a query like <Date's Field> lt addDays(utcnow(),-30) AND <EmailSent> nq 'Yes'.
    3. For each value, send an email and update it with the flag "Email Sent."

     

    That's it :).

     

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

     

  • gforber Profile Picture
    19 on at

    @manuelstgomes  Sorry for the stupid question, this is the first time I've used flow.  is an OData query the same as an SQL query?  We don't have that enabled on our flow service.

     

  • manuelstgomes Profile Picture
    6,643 on at

    Hi @gforber 

     

    It's not a stupid question at all. It's my fault I didn't explain it properly.

     

    Please check if this example helps you.

    2020-02-05 15_10_57-Create your flow _ Power Automate.png

     

    I used the "Created" field to test but you can replace it with the name of the SharePoint column that stores the expiration date.

     

    The OData is inserted when we do a "Get Items" so that we query the database and only retrieve the information that we want. This way we don't need to pull all information from the database. 

     

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

  • gforber Profile Picture
    19 on at

    @manuelstgomes  Thank you - I think I am almost there so thank you so much for your help.  One question though - my documents sit in a Sharepoint library and GetItem - how do I reference a library ?  I can see GetFile(Properties Only) but that doesn't seem to work.

     

    thanks again

  • manuelstgomes Profile Picture
    6,643 on at

    Hi @gforber 

     

    Try the "List Folder". You should be able to see the files in that Library..

     

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

  • gforber Profile Picture
    19 on at

    Hi Manuel

     

    Thanks for your help

     

    When I use "List Folder", I can't see how I can then add in the query?  Am  I missing something ?

  • gforber Profile Picture
    19 on at

    Hi @manuelstgomes 

     

    Thanks for your help

     

    When I use "List Folder", I can't see how I can then add in the query?  Am  I missing something ?

  • gforber Profile Picture
    19 on at

    @manuelstgomes 

     

    I managed to setup the query using  Get Files (Properties only) but I am seeing the following error

     

    Capture.JPG

    Any ideas ? 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard