Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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!!

  • RickSavoy Profile Picture
    24 on at
    Re: Power Automate HTTP Post Error when updating datetime field

    Thanks @v-zhoqian-msft !

  • RickSavoy Profile Picture
    24 on at
    Re: Power Automate HTTP Post Error when updating datetime field

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

  • RickSavoy Profile Picture
    24 on at
    Re: Power Automate HTTP Post Error when updating datetime field

    Thank you Habsburg. Your suggestion worked!

  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Power Automate HTTP Post Error when updating datetime field

    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.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow