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 / Problem with addToTime
Power Automate
Answered

Problem with addToTime

(0) ShareShare
ReportReport
Posted on by

Dear Community,

I have got a problem with addToTime function.

I try to update a SharePoint list just adding 1 year.
The field in SharePoint is of datatype Date and Time.

I have got a value from another list which is called "Prüfdatum".
Now I just try to set a new date using:

 

 

 

 

addToTime(@{outputs('Get_item_Messprotokolle')?['body/Pr_x00fc_fdatum']},12, 'Month')

 

 

 

It looks like this:

der_cosmicyes_0-1636463984255.png

However when I test the flow it is saying

OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Update_item_Elektrische_Geräte' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/N_x00e4_chste_x0020_Pr_x00fc_fun' is required to be of type 'String/date'. The runtime value '"addToTime(2021-10-25,12, 'Month')"' to be converted doesn't have the expected format 'String/date'.

Then I tried with formatDateTime:

 

 

 

formatDateTime(addToTime(@{outputs('Get_item_Messprotokolle')?['body/Pr_x00fc_fdatum']},12, 'Month'),'ddMMyyyy')

 

 

 

But I get the same error message.

Can anybody help?

Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    RK-23070616-0 Profile Picture
    on at

    Oh my god....
    Just a beginners problem...
    I typed in "Dynamic Content" and not in "Expression".
    I copy and pasted to Expression and now everything is working.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard