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 / Create Item in Sharepo...
Power Automate
Unanswered

Create Item in Sharepoint with DateTime column

(0) ShareShare
ReportReport
Posted on by 4,204 Super User 2025 Season 2

Can someone explain why I cant seem to create Sharepoint item to a list which has column that is Datetime -type? 
If i try to create item with the Datetime column filled with %Date% variable I get this error:

eetuRobo_1-1717670322377.png

If I look at the error details it says in message "String was not recognized as a valid DateTime."

eetuRobo_2-1717670373904.png


It seems like if I copy paste manually the %Date% value to sharepoints Datetime column it takes it with no problem.

And at least in my testing it seems like PADs Datetime -type variable is always in the same format: M/dd/yyyy H:mm:ss

eetuRobo_3-1717670659839.png

In my sharepoint list it doesn't take the seconds or AM/PM so I was thinking that maybe I try to give the value in that format. But I don't really know any way to change Datetime format in PAD without changing it to string type.


If I just try to pass it the date as a string type it will clearly say the type must be 'Datetime' ( I disabled the text to datetime converting)

eetuRobo_0-1717670245261.png


Any ideas? Or do I just need to create new Sharepoint date column which type is text?

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @eetuRobo 

     

    If possible, kindly provide some specifics about your date column similar to the screenshot below, so I can replicate the issue in my system.

     

    Deenuji_1-1717672583787.png

     

     

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Its similar to your picture.
    eetuRobo_0-1717672733601.png


    Thank you in advance 🙂

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @eetuRobo 

     

    It may be due to system datetime format. Please take screenshot of your timezone  and region format like below and share, let me try from my end.

     

    Deenuji_0-1717673565988.png

     

     

     

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Machine date time settings:
    eetuRobo_0-1717673843593.png

    sharepoint/microsoft "my account" settings:

    eetuRobo_1-1717673875054.png

     

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @eetuRobo 

     

    Not able to replicate . With below settings its working fine for me.

     

    Deenuji_1-1717675458608.png

     

    After conversion, if I open the variable value its showing like this but in actual variable panel it looks in different format.

     

    Deenuji_2-1717675525452.png

     

     

    Sharepoint with variable and hardcode value

    Deenuji_0-1717675418650.png

     

    Sharepoint output:(date saved in different timezone)

    Deenuji_3-1717675738160.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Yeah the variables looks the same:

    eetuRobo_0-1717676743613.png


    And so does everything else. If I write the date manually like you

    eetuRobo_1-1717677132059.png

    it will give the same 'BadRequest' and in message details it says:
    "String was not recognized as a valid DateTime"


    Good to know that at least you are able to create the item to dateTime column with both manually writing it and with a datetime variable. 

    Probable cause: bug in the older PAD version
    Then I think it could simply be a bug in this PAD version since this environment has version 2.39.306.23341 on it.

    I cant update it right now since there are critical flows running in the production side and cant take a risk to update it and something maybe going wrong. For now I will just create date column that is text type and update PAD when I have more time to check that nothing breaks.

    Thank you @Deenuji 

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @eetuRobo 

     

    This is really strange. If you need any additional assistance in verifying whether this is a version-related issue, please provide me with your PAD version. I'll investigate and confirm accordingly.

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