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 / @formatDateTime in "Up...
Power Automate
Unanswered

@formatDateTime in "Update File properties" Help needed

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a "ModelYear" column in SPList formatted as Date field.

In PowerApps I am passing Text(drpMfgYear.Selected.Value) to a Run call to flow:Run(Text(drpMfgYear.Selected.Value)) along with some other fields required by flow.

In the flow, I have formatDateTime(triggerBody()?['Updatefileproperties_ModelYear'],'yyyy').

Flow fails with error message:

Unable to process template language expressions in action 'Update_file_properties' inputs at line '1' and column '1935': 'The template language function 'formatDateTime' expects its first 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? Please help.

 

FlowError8Aug2018.PNG

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    According to your description, I have created a flow likes below, it doesn’t return any error message as you mentioned.

     

    There is Date column in the SharePoint library. I am trying to pass date value from PowerApps to the column via flow.

     

    The flow is triggered by PowerApps button, in the Due date column, using the following code to format date time.

    formatDateTime(triggerBody()['Updatefileproperties_DueDate'],'yyyy-MM-dd')

    1.PNG

     

    On the app, I get the date from a DatePicker control.

     

    When I click the PowerApps button, the flow is triggered then the DueDate is updated properly.

     

    Please take it for a reference.

     

     

    Best regards,

    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yamao-msft wrote:

    Hi @Anonymous,

     

     

    I am trying to pass date value from PowerApps to the column via flow.

     

    Best regards,

    Mabel Mao


    Hello SIr Mao,

    Thankd for your replay and suggestion. Your test condition differs from mine. I am getting an error that I am passing Integer Value instead of time date value to the flow . I tried to create a time date value and then pass it to the flow but I still get the error.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard