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 / Add hours to modified ...
Power Automate
Answered

Add hours to modified column

(0) ShareShare
ReportReport
Posted on by 4,187

Hi All,

 

I have a SharePoint list in which different travel request are submitted and if request is not approved in two hours I need to send reminder email but I just can't get the formula to add hours right.

 

I am getting this value from modified column - 2020-11-17T12:53:23Z and I just need to add two hours and need formula for the same.

 

I have three level of approvals, if request approved at level 1 then check if level approved at level 2 in the next 4 hours else send reminder email, if request not approved in next 8 hours need to send another reminder email and so.

 

Hence I need to add 2,4,8 hours to modified column of SharePoint list

 

Please help

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @jinivthakkar ,

    there's addHours() expression in Power Automate, you'll use the modified date as the first parameter and the 2nd parameter is how many hours you'd like to add (2 or 4 or 8...)

    image.png

  • jinivthakkar Profile Picture
    4,187 on at

    Hi Tom, 

     

    I am aware of the addHours() function and I also tried using it but it keeps giving me error - Invalid expression

     

    So I need help in building the expression which addes 2,4 etc hours to modified column.

     

    Thanks !

  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @jinivthakkar,

    the expression should have the following format, 

    addHours(<ModifiedDate>,2)
    
    addHours(<ModifiedDate>,4)
    
    addHours(<ModifiedDate>,8)

     <ModifiedDate> is the 'Modified' dynamic content.

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    I did get item, then initalize variable and then in set variable I added this expression :

     

    addHours(outputs('Get_item')?['body/Modified'],+1)
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard