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 / refer one field in ano...
Power Automate
Answered

refer one field in another in the same action

(0) ShareShare
ReportReport
Posted on by 18

Hi,

in the screen shot bellow, I would like the end time to refer to the start time,

end time=start time +5 days.

I am using adddDays function but i do not know how to call for the variable start time.

thanks for your help.

Yann78_0-1693799640989.png

this string doesn't work

Yann78_0-1693799830559.png

 

 

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Yann78 

     

    Pls initialize a variable that holds the start time. Here I have captured the current time using utcnow() function in the variable:

    ManishSolanki_0-1693801082130.png

     

    Next, I pass this variable directly into the 'Start Time' parameter. In 'End Time', I added 5 hours using the expression as shown below:

    ManishSolanki_1-1693801213404.png

    Expression used in the 'End time':

    addHours(variables('startTime'),5)

    Pls note that the start & end time accepts date time in 'yyyy-MM-ddTHH:mm.ssZ' format (e.g. 2023-09-04T04:15:43.3607360Z)

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Verified answer
    Yann78 Profile Picture
    18 on at

    thanks you. That's not a direct method, but it does the trick, I'll use it.

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 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard