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

Set the right time in start and end time expression to create event

 Hello,

 i want to create a flow which follow these steps.

  1. When an item is created in SharePoint, the flow should check the availability of the needed Participants.
  2.  Invite all the needed participants for the first free slot in time.

The issue: i was able to create an event only for the next 2 days. When no free slots are available for the next 2 days, I couldn’t create an Event. See following Appendix

SANA24_0-1656969248354.png

The 07.05.2022 from 14:00 to 15:00 isn’t a free slot so the filter has no output for the Create event.

 

Find meeting times 1

Start time:

The next working day

if(equals(dayOfWeek(utcnow()),5),startofday(adddays(convertFromUtc( utcnow(),outputs('Your_Time_Zone')),3)),if(equals(dayOfWeek(utcnow()),6),startofday(adddays(convertFromUtc( utcnow(),outputs('Your_Time_Zone')),2)),startofday(adddays(convertFromUtc( utcnow(),outputs('Your_Time_Zone')),1))))

 

End time:

In the next 240 hours

addHours(utcnow(),240)

Max candidates: 1

 

Fillter array 2

SANA24_1-1656969248356.png

Create event 

Start time:

convertFromUtc(concat(body('Filter_Array')[0]['MeetingTimeSlot']?['start']?['dateTime'],'Z'),outputs('Your_Time_Zone'))

End time:

convertFromUtc(concat(item()?['MeetingTimeSlot']?['end']?['dateTime'], 'Z'), outputs('Your_Time_Zone'))

 

 

 

1 REPLY 1
vig_2909
Frequent Visitor

Hey,

 

Try to use parse function 

you will  be able to get the date-time with which you can use apply to each to get other available days

 

@DeepakS 

 

Background : Finding Meeting V2 connector returns meeting schedule only for T+2days . Is there any better solution for this issue?

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,610)