Skip to main content

Notifications

Power Automate - Building Flows
Answered

Create a date field = today's date + 1 month to show in my HTML table and email

Posted on by 42

I have created a flow to identify which files in a sharepoint library require review.  Each file has a nominated reviewer.

So it gets the file properties for files that meet a number of filter queries.  It pulls out the email addresses, uses a variable to take out the duplicated email addresses, creates a HTML table and sends one email to each reviewer listing all the relevant files they need to review.

What I would like to do, is add an additional field to the HTML table to create a Review Deadline date based on today's date + 4 weeks (I know the basic expression for this).  This date would then be included in the email and I will add an extra step to update the file properties in sharepoint with that date.

What I am struggling with is where to add it in the flow i.e. is it another variable, is there a way to add it directly into the HTML table etc....

 

Step 1.jpg

Step 2.jpg

Step 3.jpg

 

 

 

  • Verified answer
    MerlinT Profile Picture
    MerlinT 42 on at
    Re: Create a date field = today's date + 1 month to show in my HTML table and email

    Thanks so much for the detailed response.  Worked exactly as I wanted.

  • Re: Create a date field = today's date + 1 month to show in my HTML table and email

    Hi @MerlinT ,

    Please add DocumentDueDate and expression in 'Select':

    vyetonggumsft_1-1716873963461.png

    addDays(utcNow(),30,'yyyy-MM-dd')

    Best Regards,

    Sunshine Gu

  • UshaJyothi20 Profile Picture
    UshaJyothi20 1,475 on at
    Re: Create a date field = today's date + 1 month to show in my HTML table and email

    Hi @MerlinT 

    write compose and place that function in that and the output of the compose then give the output of compose in the HTML table.

     

    Try this

    Hope this helps

    Usha.

  • MerlinT Profile Picture
    MerlinT 42 on at
    Re: Create a date field = today's date + 1 month to show in my HTML table and email

    Thanks Usha.  I do know how to add the date + period.  My issue is where to actually add it, and what type i.e. do I add it as another variable or can I somehow add it in the HTML table directly etc.?

     

  • UshaJyothi20 Profile Picture
    UshaJyothi20 1,475 on at
    Re: Create a date field = today's date + 1 month to show in my HTML table and email

    please find below thread

     

    https://powerusers.microsoft.com/t5/Building-Flows/Add-X-months-or-year-to-today-s-date/td-p/1372059

     

    Hope this helps,

    Usha.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard