web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Contract About To Expi...
Power Automate
Unanswered

Contract About To Expire Notification Using SharePoint Metadata

(0) ShareShare
ReportReport
Posted on by 42

Hello, 

 

In the SharePoint library, there is metadata labeled as "Contract Expired Date" I'm trying to get the flow to go through all the contents (ie. folders) in the library and find if a contract is about to expire in 14 days. If so, it will send an email to the "Responsible Party" (another metadata). So far, I have it structured like this, but it's not emailing me any notifications even though I know there is one. If possible, please show a step-by-step procedure. Thanks in advance!

 

IceQueen_0-1623795244591.png

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @IceQueen :

    Please try this:

    v-bofeng-msft_1-1623814712373.png

    Best Regards,

    Bof

     

     

  • IceQueen Profile Picture
    42 on at

    Sorry for the late reply. Will test it right now!

  • IceQueen Profile Picture
    42 on at

    After running the flow. it seems to still have the same result. I added a notification action to the "If No: part of the condition to see what the flow is transversing through and it only pops up Folder names. Thus, while Folders are being avoided, it does not have any file names that should have failed. (Note: Files inside of the failed folders.) That leaves me to think that it only transverses the folders for some reason...or it's not transversing through folders it failed?

  • v-bofeng-msft Profile Picture
    on at

    Hi @IceQueen :

    I've made a test but it worked well on my side.

    vbofengmsft_0-1624242867990.pngvbofengmsft_1-1624242890790.png

    Please check if there are any eligible files in your library

    Best Regards,

    Bof

     

     

     

  • IceQueen Profile Picture
    42 on at

    Hello, 

    I think I figure it out now. However, my only remaining concern is that I wanted the flow to send an email when there are 14 days before the contract expiration date. (So, don't email contracts expiring in 13 days). I modified the second condition from "greater than" to "equal to." But, it seems to also want the time (hour:minutes:seconds] to be equal too now, is there a way around this? 

    IceQueen_0-1624304657977.png

     

  • v-bofeng-msft Profile Picture
    on at

    Hi @IceQueen :

    vbofengmsft_0-1624325343962.png

    vbofengmsft_1-1624325441229.png

    Best Regards,

    Bof

     

  • IceQueen Profile Picture
    42 on at

    @v-bofeng-msft 

    The one on the right is sort of cut off - I have 

    startOfDay(items('Apply_to_each')?['ContractEndDate'])
    which causes the entire flow to fail. 
     
    Note: The metadata variable is "Contract End Date/Review Date" - not sure if I was supposed to write the whole thing in the square brackets/. 
    IceQueen_0-1624391674374.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard