cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joevans
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-06-06T11:47:23.0798367Z

2022-05-30T03:30:00Z

2022-05-30T03:30:00

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)"

joevans_0-1653412044908.png

 

2 REPLIES 2
ScottShearer
Super User
Super User

@joevans 

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.

Scott
joevans
Regular Visitor

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

joevans_1-1653431745607.png

 

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

joevans_2-1653431832237.png

 

It ignores everything after the T.

 

 

 

 

 

Helpful resources

Announcements
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)