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

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
David_MA Profile Picture

David_MA 223 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 205 Most Valuable Professional

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard