Hi,
I have a field called ApprovalDate2.
ApprovalDate2 column is of type single line of text.
I am updating the above field with todays date in the update item action as below
formatDateTime(utcNow(),'MM-dd-yyyy')
But I am getting the error as below. Please let me know if I am making any mistake
'A text field contains invalid data. Please check the value and try again.'
Regards,
Sudheer
FormatDateTime returns a string value so that should work as expected. Are you sure this error is related to ApprovalDate2 formatDateTime() value? Try also formatting without the hyphens.
formatDateTime(utcNow(),'MMddyyyy')
I am not suggesting to remove hyphens as a suggested solution but lets see what error you get?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThe first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
27 | |
26 | |
23 | |
14 | |
10 |
User | Count |
---|---|
62 | |
55 | |
29 | |
28 | |
24 |