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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Create event V4 gives an error when using a date from Get item (SharePoint)

(0) ShareShare
ReportReport
Posted on by 46

Hello all,

 

I'm building a flow to trigger when a new item is created in a sharepoint list, the flow will take that item's details (Subject, Start date, end date, location) and create a calendar event using these details.

 

in the create event connector I have the calendar ID, Subject, Start time and End time, and time zone. I am getting this error when I try to save the flow:

 

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Create_event_(V4)': The parameter with value '"@outputs('Get_item')?['body/field_7']"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'.

 

Screenshot_25.png

 

Can anyone help me out with this? the date column in sharepoint list includes time, and the records into the sharepoint list are being entered through a powerapp.

 

I have the same question (0)
  • v-liwei-msft Profile Picture
    on at
    Re: Create event V4 gives an error when using a date from Get item (SharePoint)

    Hi @EdK99 

     

    Could you please tell me:

    Is this field a text column rather than a date column in SharePoint?
    Could you please provide the date format in that column.

     

    Best Regards,

    Levi

  • EdK99 Profile Picture
    46 on at
    Re: Create event V4 gives an error when using a date from Get item (SharePoint)

    Hi @v-liwei-msft , thank you for the swift response

     

    it is a date column that includes time and the friendly format option is not enabled.

     

    the output that I'm getting from the get item action in power automate is: "2022-12-04T21:00:00Z", so I think this is the format.

  • Verified answer
    v-liwei-msft Profile Picture
    on at
    Re: Create event V4 gives an error when using a date from Get item (SharePoint)

    Hi @EdK99 

     

    You can use formatDateTime to convert the date to the format required by Create Event.

    formatDateTime(outputs('Get_item')?['body/field_7'],'yyyy-MM-dd hh:mm:ss')

     

    Best Regards,

    Levi

  • EdK99 Profile Picture
    46 on at
    Re: Create event V4 gives an error when using a date from Get item (SharePoint)

    It worked, thanks a lot!!

  • kironr Profile Picture
    2 on at
    Re: Create event V4 gives an error when using a date from Get item (SharePoint)

    Where do I add this line? In the code view or the gui after the dyanamic field "start date-time"?

  • SCFowler Profile Picture
    2 on at
    Re: Create event V4 gives an error when using a date from Get item (SharePoint)

    Hi - I have tried to use this solution when creating an event - but I get this error 

     

    The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.
    clientRequestId: 77cec753-f9b0-4f28-a62a-edf65be219fb

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard