cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
romi
Frequent Visitor

Date

Hi, 

 

I am using microsoft forms and microsoft flow. 

In microsoft forms, I used text question for the dates since I want to add multiple dates

 

Question: Dates Booked

Answer: 8/8/2021, 8/16/2021, 8/25/2021

 

I made an approval then if it is approved. it will create an event in Outlook Calendar.

 

But since the dates are multiple. The flow is having an error

Is there a way that I can fix this?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
annajhaveri
Community Champion
Community Champion

@romi  configure the flow as shown below, here i am assigning static value to variable but you can assign form response date field to the variable

 

annajhaveri_0-1629186342671.png

 

 

In Compose action use following expression

split(variables('Dates'),',')

 

Then in apply to each action use output of compose action. Then in Create event action use current item for dates.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

9 REPLIES 9
annajhaveri
Community Champion
Community Champion

@romi  you can use compose action and split expression to split the date value first, and then with Apply to each action use output of compose action, and inside it add Create Event action.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
romi
Frequent Visitor

hi,

 

what will i put in start time and date time? thank you

Nived_Nambiar
Resolver III
Resolver III

Hi @romi 

From the dates that u had received from the forms, what would be the start time and end time ?

annajhaveri
Community Champion
Community Champion

@Nived_Nambiar  are you taking the time from user in create event, if not, do you want to create event for all day or for specific time slot?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Hi, 

 

What if I received multiple dates?

 

For example: The client booked for August 15, 2021; August 17, 2021 and August 25, 2021. 

romi
Frequent Visitor

Hi, 


I want it to be event for full day. 

Thank you.

romi
Frequent Visitor

Hi,

 

I'm getting this error 

 

The 'inputs.parameters' of workflow operation 'Create_event_(V4)' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/start' is required to be of type 'String/date-no-tz'. The source type/format 'Array' of the value '["8/15/2021"," 8/19/2021"," 8/25/2021"]' is not convertible to type/format 'String/date-no-tz'.

annajhaveri
Community Champion
Community Champion

@romi  configure the flow as shown below, here i am assigning static value to variable but you can assign form response date field to the variable

 

annajhaveri_0-1629186342671.png

 

 

In Compose action use following expression

split(variables('Dates'),',')

 

Then in apply to each action use output of compose action. Then in Create event action use current item for dates.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
romi
Frequent Visitor

Thank you for your help!! 

 

It works.. 😍

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,032)