Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Email to SharePoint Event

I have created a Flow that takes information from the body of an email and creates a SharePoint calendar event from that information.


I can get it to create an event on a specified date, but can't get the time.


When I try to add the time in the SharePoint format that I found I get:

The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/EventDate' is required to be of type 'String/date-time'. The runtime value '" 2022-05-30T"' to be converted doesn't have the expected format 'String/date-time'.


I have tried:




2022-05-30 T03:30:00


Does anyone know how to format the time so that it can post at the correct time?


Here is meat of the flow. In "Compose" I get the date information using:

"substring(body('Html_to_text'),add(lastIndexOf(body('Html_to_text'),'Start Date:'), 11),12)"



Super User
Super User


Can you post a screen shot of the output of your Compose action after a run please?

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Regular Visitor

Of course, here is a successful Output when only the date is typed:



Here is an unsuccessful output when I try to include the time:



It ignores everything after the T.






Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,269)