
Hi,
I have automation for sending information from excel to sharepoint list and have a problem with dates. In the Compose_2 I have an error: "Unable to process template language expressions in action 'Redaguj_2' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'."
My configuration:
EDIT: Your expression is wrong.
The addDays() function takes three parameters: the first parameter is a timestamp. Second is the number of days to add or subtract. Use a positive number to add days and a negative number to subtract days. The last parameter is the datetime format pattern—this one is optional. Use it if you’d like to output a specific datetime pattern.
addDays([timestamp],[days to add/remove],[datetime format pattern])
You might find this YT Tutorial helpful: How to Work with Dates in Power Automate | Example Scenarios and Tips & Tricks
Are you easily stumped when working with Dates in Power Automate? In this Power Automate tutorial, I’ll show you how to compose an expression that will return a future date, a past date, how to count the number of days between two dates, how to check for a birthdate and anniversary date as well as tips and tricks when working with dates in Power Automate.
I’ll cover some common use cases and concepts that can help you to build better Power Automate flows. Feel free to skip ahead using the timestamps listed below. I’ve also linked a few other tutorials that you might be interested in as well.
IN THIS VIDEO:
✅ 4 Date Functions You Need to Know
✅ How to use the Convert Time Zone Action
✅ How to Get a Future Date
✅ How to Get a Past Date
✅ How to Return SharePoint Items Due in a Number of Days
✅ How to Return SharePoint Items Due within a Date Range
✅ How to write a Filter Query for SharePoint Items Due in 30, 60 and 90 Days
✅ How to Calculate the Number of Days between Two Dates
✅ How to Check for a Birthdate and Anniversary Date
✅ How to work with Dates and Times in Excel
✅ How to use a Manual Trigger with Date Input
✅ How to Output Dynamic Text with an Expression
✅ How to Check if a Date Falls on a Weekend