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
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 (3,902)