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 an event in 365...
Power Automate
Unanswered

Create an event in 365 calendar using Dynamic content

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Im trying to set the time for the events based on in put form a microsoft form.

Imputs from the person filling out the form Date Required, Time of pick up

 

So im trying to create the event with start time to be equal to the date required and time of pick up.

I can see that calanders require a YYYY-MM-DDThhmmss format is this first correct?

 

What i have been trying is 

First to format the Pick up time as it is enterd as a 24hr time
formatDateTime(Pickuptime,hh) so should give a string of say eg 17,02,22
 
Then 
Addhours(DateRequred,(formatDateTime(Pickuptime,hh),'yyyy-M-ddThh:mm:ss')
 
but im getting a

InvalidTemplate. Unable to process template language expressions in action 'Create_event_(V4)' inputs at line '0' and column '0': 'In function 'formatDateTime', the value provided for date time string '1700' was not valid. The datetime string must match ISO 8601 format.'.

 

the exact formula 

addHours(items('Apply_to_each_2')?['field_5'],formatDateTime(items('Apply_to_each_2')?['field_6'],'HHmm'))

Thanks in advance

 

Brendan

 

Categories:
I have the same question (0)

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard