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 - Building Flows
Answered

UtcNow plus 1 day in List Rows Dataverse action

(0) ShareShare
ReportReport
Posted on by 802

Hi there,

 

I am building a deskbooking app, and am working on a Virtual Agent to help with this. 

 

As part of the flow, I need to list Dataverse rows which meet certain criteria to ensure that there is no double booking. 

 

In the List Rows action, I am putting this as Filter rows (as an expression) to try to list only those where there is a reservation date of tomorrow. The column in Dataverse is "Date Only"

 

new_reservationdate eq 'formatDateTime(utcNow(), 'dd-mm-yyyy', 1)'

 

When I run this, however, I get this error message - Unable to process template language expressions in action 'List_rows' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its third parameter to be of type string. The provided value is of type 'Integer'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.

 

What am I doing wrong?

 

Thanks

K.

 

I have the same question (0)
  • Expiscornovus Profile Picture
    32,908 Most Valuable Professional on at
    Re: UtcNow plus 1 day in List Rows Dataverse action

    Hi @Kosenurm,

     

    When you want to add 1 day you could use the adddays function. Try this instead:

     

    new_reservationdate eq '@{formatDateTime(addDays(utcNow(), 1), 'dd-MM-yyyy')}'

     

  • Kosenurm Profile Picture
    802 on at
    Re: UtcNow plus 1 day in List Rows Dataverse action

    Thanks, when I tried this... I get this error

     

    A binary operator with incompatible types was detected. Found operand types 'Edm.Date' and 'Edm.String' for operator kind 'Equal'.

     

    Any ideas?

    Thanks

    K.

  • Expiscornovus Profile Picture
    32,908 Most Valuable Professional on at
    Re: UtcNow plus 1 day in List Rows Dataverse action

    Hi @Kosenurm,

     

    Can you share a screenshot of your list rows action configuration?

  • Kosenurm Profile Picture
    802 on at
    Re: UtcNow plus 1 day in List Rows Dataverse action

    Capture.PNG

  • Verified answer
    Expiscornovus Profile Picture
    32,908 Most Valuable Professional on at
    Re: UtcNow plus 1 day in List Rows Dataverse action

    Hi @Kosenurm,

     

    Based on what I have found in this thread I would say to try the same filter rows value without quotes around the expression.

     

    Edit: I was able to reproduce that same error. I also had to update to the correct format (yyyy-MM-dd). In my dev environment this worked:

     

    new_bexdeskreservationdate eq @{formatDateTime(addDays(utcNow(), 1), 'yyyy-MM-dd')}

     

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard