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

Flow with more than three choices

I am trying to create a flow that checks to see if an event was created by one of three staff that are allowed to create events/appointments on the manager's calendar.  With an 'If' statement this would be easy using an  'or' but I don't see that anywhere this would be possible or if it is with WDL(?), I am not sure how to do it.  Or do I do just a bunch of IF's?  I looked at the 'Switch'  but that more for doing different actions for different conditions.  I am looking to do the same action if one of the conditions are met. 

The other question is if a condition isn't met, how would I delete the event from the calendar?  Is there some kind of id that can be used to identify the event?

 

Mike

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi mj4golf,

 

Which calendar are you using? Office 365 Calendar or SharePoint Calendar?


Say you are using a SharePoint Calendar, you could consider to add a Condition in your Flow and configure the Condition with “Or” function.


If the event is created by three staffs that are allowed to create events on the manager’s calendar, do actions you want, such as send an email. If not, use “SharePoint-Delete item” action to delete the event.


Following screenshot is the flow I have configured.


In the Condition, I used the dynamic content “Created by DisplayName”.
In the Delete item action, you could delete the event using the dynamic content ID from the trigger “When a new item is created”.

4.PNG

 

Hope this could be a reference for you. Please feel free reply if you need more help.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Hi mj4golf,

 

Which calendar are you using? Office 365 Calendar or SharePoint Calendar?


Say you are using a SharePoint Calendar, you could consider to add a Condition in your Flow and configure the Condition with “Or” function.


If the event is created by three staffs that are allowed to create events on the manager’s calendar, do actions you want, such as send an email. If not, use “SharePoint-Delete item” action to delete the event.


Following screenshot is the flow I have configured.


In the Condition, I used the dynamic content “Created by DisplayName”.
In the Delete item action, you could delete the event using the dynamic content ID from the trigger “When a new item is created”.

4.PNG

 

Hope this could be a reference for you. Please feel free reply if you need more help.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

Thank you for the reply.  Is there any documentation on the WDL language, like a command reference?

Highlighted

Hi mj4golf,

 

I assume that this doc about Workflow definition language could be a reference for you:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

Please check it for more details.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,525)