Sharepoint Online structure with notifications

Jim Anderson 1 Reputation point
2021-05-12T10:43:18.513+00:00

Hi all,

We have a customer who is working only with contracts and they are using teams and sharepoint a lot. Questions is: Is there a good way to create folder structure in sharepoint with archiving function? We would like to have alarm or notification 3 months before contract expiration time and we would like to have automatic archive of the contract when it is done.

Is this possible?

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,861 Reputation points
    2021-05-13T06:14:27.3+00:00

    Hi @Jim Anderson ,

    To have a notification three months before contract expiration time, I built a Power Automate Flow and achieved it. I will show my implementation process below.

    • Create a Date and time column named "Expiration Date" and a calculated column named "3MonthsBeforeExpirationDate" with the formula =DATE(YEAR([Expiration Date]),MONTH([Expiration Date])-3,DAY([Expiration Date])). Set "The data type returned from this formula is" to "Date and time".
      96147-image.png
      96198-image.png
      You can hide this two columns if you don't want it to show them in your library view.
    • Sign in Microsoft Power Automate and created a scheduled cloud flow, Start from today and repeat every 1 day.
      96149-image.png
    • Build the flow. Overview.
      96137-1.png
      Expression of Compose: items('Apply_to_each')?['OData__x0033_MonthsBeforeExpirationDate']
      96180-image.png
      The expression for the first value in the Condition: formatDateTime(outputs('Compose'),'yyyy-MM-dd')
      96243-image.png
      The expression for the second value in the Condition: formatDateTime(utcNow(),'yyyy-MM-dd')
      96138-image.png

    Test result on my end.
    96215-image.png

    As to archive documents in SharePoint, here is an good article by Maven and detailed introduction is contained in this article: 6 ways to archive documents in SharePoint. Please take a reference to it. Then you can integrate some ways with the Power Automate flow above.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.