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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / create an event v4 bas...
Power Automate
Unanswered

create an event v4 based on selected rows in excel

(0) ShareShare
ReportReport
Posted on by 4

HI, Im ver new in Microsoft Flow. 

I have a table like this:

NameEmailDateStart timeEnd time
Johnjohn@..27.5.20218:00:00 AM4:00:00 PM
Martamarta@..29.5.20218:00:00 AM4:00:00 PM

 

I want to create an event in outlook base on selected rows in excel. When I create a process and run it, I get an error:

String was not recognized as a valid DateTime.
clientRequestId: a6016aa5-62ae-4334-af86-0e7527c9f7c7

Fiala_0-1622097598032.png

There must be an error in specifying the time and date. I need it dynamic according to the table. Should I use an expression or what could be the problem, please? Thank you

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Fiala 

     

    Using your sheet as an example, you will need to split the date into an array and reformat it.  The time will also be sent to your flow as a float and needs converted to a time too.

     

    DamoBird365_0-1622143829374.png

     

    Compose: split(item()?['date'],'.')

     

    Start: @{outputs('Compose')?[2]}-@{outputs('Compose')?[1]}-@{outputs('Compose')?[0]}T@{formatdatetime(addseconds('1899-12-30',int(formatnumber(mul(float(items('Apply_to_each')?['Start Time']),86400),'0'))),'HH:mm:ss')}

     

    End: @{outputs('Compose')?[2]}-@{outputs('Compose')?[1]}-@{outputs('Compose')?[0]}T@{formatdatetime(addseconds('1899-12-30',int(formatnumber(mul(float(items('Apply_to_each')?['End time']),86400),'0'))),'HH:mm:ss')}

     

    In a bit more detail, you build a date using element 2 1 and 0 from the array created by splitting the date on the '.'

     

    Format the time using an expression to calculate a date time, but use a formatdatetime expression of HH:mm:ss (note that capital HH means 24 hours).

     

    The result is as follows:

     

    DamoBird365_0-1622144104334.png

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

  • Fiala Profile Picture
    4 on at

    HI @DamoBird365 thank you very much.

     

    I have created a procedure according to your advice. I received this error message. I don't know what now :(.

     

    The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()' is of type 'Object'. The result must be a valid array.

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Fiala 

     

    I think you have selected body rather than value for the apply to each?  Either that or your get rows action returns no rows.  Can you take a look and then share your flow?

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

     

     

  • Fiala Profile Picture
    4 on at

    Hi @DamoBird365,unfortunately I don't know how to add "value" to the output from the previous step. I don't have the option to choose "value". I also can't share my flow. Too bad I'm close but I can't make it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard