web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Suggested answer

How to get previous date in power automate

(0) ShareShare
ReportReport
Posted on by 10
Hi Community,
 
Currently I've already create a currency table where it gets live data from the exchange rate website but I wanted to show previous date exchange rates, can advise me on this?
 
I you want my flow I'll be happy to send it
Categories:
I have the same question (0)
  • developerAJ Profile Picture
    3,778 on at
    How to get previous date in power automate
    Please share a screenshot of the formula you’re currently using along with details of your data source, so we can better understand your setup and how it’s currently configured.
  • André Arnaud de Calavon Profile Picture
    171 on at
    How to get previous date in power automate
    Hi,
     
    We don't know what type of database you are using. In case the table can be called from a supported connector, and the connector supports filtering, you can use OData filters to select a specific date. Using a formula you can calculate the date of yesterday. Then you can retrieve the exchange rate for a specific currency at any given date.
  • MB-08100221-0 Profile Picture
    10 on at
    How to get previous date in power automate
     
    I'm using an Open API
  • Suggested answer
    chiaraalina Profile Picture
    605 on at
    How to get previous date in power automate
    Hi 
     
    You can use this expression:
     
    formatDateTime(addDays(utcNow(), -1), 'yyyy-MM-dd')
     
    and then use the Compose Output in your OpenAPI Request.
     


     
    Let me know if it helped!
  • MB-08100221-0 Profile Picture
    10 on at
    How to get previous date in power automate
    Hi chiaraalina
     
    My flow is like this, where should I put the compose action?
  • chiaraalina Profile Picture
    605 on at
    How to get previous date in power automate
    Hi
     

    Add a Compose action right after your Recurrence trigger.

    Use the following expression to return yesterday’s date (today − 1 day):

     
    formatDateTime(addDays(utcNow(), -1), 'yyyy-MM-dd')
     

    This will output the previous date in yyyy-MM-dd format, for example: 2025-10-14.

     

    You can then reference this Compose output in your HTTP action.

    I’m not sure which API you’re using, but for example, if you’re calling the Exchange Rate API, your request URL could look like this:

    https://api.exchangerate.host/@{outputs('Compose')}?base=EUR
  • MB-08100221-0 Profile Picture
    10 on at
    How to get previous date in power automate
     
    actually I want to show multiple rows with previous date
     
    my API is this
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 699 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 542 Moderator

#3
chiaraalina Profile Picture

chiaraalina 321

Last 30 days Overall leaderboard