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 / exxpiration date - Days
Power Automate
Answered

exxpiration date - Days

(0) ShareShare
ReportReport
Posted on by 89

hello, i write an fuction and the power automate says expression is invalid.

 

formatDateTime(addDays(item()?['Expirace'], -item()?['Days']), 'MM/dd/yyyy')

 

can anyone help please?

Categories:
  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    -item()... does not work. Try function mul()

  • M4rv Profile Picture
    89 on at

    idk this function how can i use it, i wanna calculate the expiration date - Days (Days is number of days)

     

  • Verified answer
    Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

     

    formatDateTime(
    	addDays(
    		item()?['Expirace'], 
    		mul(
    			item()?['Days'],
    			-1
    		)
    	),
    	'MM/dd/yyyy'
    )

     

    Another hint: Are you sure that you need to format the date- specifically to this format?

  • M4rv Profile Picture
    89 on at

    yes i need it in this format because the column Expirace is format like: 'MM/dd/yyyy'

  • M4rv Profile Picture
    89 on at

    @Chriddle 

     

    I tried the formula that you send and i have this mistake when i test it : 

    Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'mul' expects its first parameter to be an integer or a decimal number. The provided value is of type 'NULL' 

     

    idk why it's not working 

     

    the Expirace is column with date in sharepoint and Days is column with number of days in sharepoint  

  • M4rv Profile Picture
    89 on at

    .

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard