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 / Create dynamic URI tha...
Power Automate
Answered

Create dynamic URI that changes date to current date each time ran

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using the HTTP connector to connect to an API to pull data daily.  The URI is

website.com/api/History?username=yyyyyy&password=xxxxxx&meterId=1000941&startDate=08/18/2021&endDate=08/18/2021 

 

I need to have the Start Date and End Date change daily when it is triggered to the current date.

 

Thanks in advance, I appreciate any and all help.

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I figured it out.  I used the following expression in place of the two dates. in a Compose Step and then added the Output of the Compose Step as the URI in the HTTP step.

     

    formatdatetime(addDays(utcnow(),-1),'MM/dd/yyyy')

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard