cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cnorris135
Helper IV
Helper IV

Updating Date field to TODAY

I am trying to update a field (Date) to TODAY's date.  How do i accomplish this thru Power Automate.  I am using the Update Item with a field called "Audit Date" which again will be TODAY's date once the trigger condition is met.

 

 

3 REPLIES 3
jinivthakkar
Dual Super User
Dual Super User

@cnorris135 here is the expression for setting today's date : 

 

formatDateTime(utcNow(),'yyyy-MM-dd') /*gets formats UTC*/

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

I received this error:

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Update_item': The parameter with value '"formatDateTime(utcNow(),'MM-dd-yyyy')"' in path 'item/AuditDate' with type/format 'String' is not convertible to type/format 'String/date'.'.

@cnorris135 please Share your update item action screen and Audit column expression. Also check your SharePoint Audit column type.

 

Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!

Regards,
Hardesh

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,891)