web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate HTTP Po...
Power Automate
Unanswered

Power Automate HTTP Post Error when updating datetime field

(0) ShareShare
ReportReport
Posted on by

I have a SharePoint list that I am building a flow for in Power Automate. When a certain field's value is changed, I need to set an associated datetime field (SetToCC) to the date and time the value was changed. Purpose is to later use that date to notify users if the next required action is not taken within 24 hrs. When I run flow with a literal quoted date, it works fine. The error I'm getting is "Invalid JSON. The value '05-15-2023' is not a valid number"

Capture.PNG

Any help would be appreciated!!

Categories:
I have the same question (0)
  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @rsavoy ,

     

     

    Based on my test, there may be two points that need to be modified

    1. Formula should be wrapped in quotation marks

    2.  Format of time:  

    formatDateTime(utcNow(),'yyyy-MM-ddTHH:mm:ss')

    vzhoqianmsft_0-1684305716729.png

     

     

     

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • RickSavoy Profile Picture
    24 on at

    Thank you Habsburg. Your suggestion worked!

  • RickSavoy Profile Picture
    24 on at

    PS: Don't see how to accept your solution. No accept button.

  • RickSavoy Profile Picture
    24 on at

    Thanks @v-zhoqian-msft !

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard