Hi
First post folks for someone just trying to learn,so be gentle 🙂
Can anyone suggest the best way to check a calendar for any existing appointments between the start date and end date of the new event bing entered.
Not really sure of how to even get started with this so any advice or tips to push me in the right direction would be great.
Thanks in advance
Martin
Solved! Go to Solution.
Hi @MartinC,
Do you want to get existing events that start time between the start date and end date of a new event?
If yes, please try the following flow for a reference.
I add a Condition in the flow and the code is:
@and(greaterorequals(formatDateTime(items('Apply_to_each')?['Start'],'yyyy-MM-dd'), formatDatetime(triggerBody()?['Start'],'yyyy-MM-dd')),lessorequals(formatDateTime(items('Apply_to_each')?['Start'],'yyyy-MM-dd'),formatDatetime(triggerBody()?['End'],'yyyy-MM-dd')))
Note: Make sure the dates are in the same format.
When a new event is created, get the existing events, then use the condition to filter out the items that between the start date and end date of the new event.
It works fine, please try it on your side.
Best regards,
Mabel Mao
Hi @MartinC,
Do you want to get existing events that start time between the start date and end date of a new event?
If yes, please try the following flow for a reference.
I add a Condition in the flow and the code is:
@and(greaterorequals(formatDateTime(items('Apply_to_each')?['Start'],'yyyy-MM-dd'), formatDatetime(triggerBody()?['Start'],'yyyy-MM-dd')),lessorequals(formatDateTime(items('Apply_to_each')?['Start'],'yyyy-MM-dd'),formatDatetime(triggerBody()?['End'],'yyyy-MM-dd')))
Note: Make sure the dates are in the same format.
When a new event is created, get the existing events, then use the condition to filter out the items that between the start date and end date of the new event.
It works fine, please try it on your side.
Best regards,
Mabel Mao
This works for me however Im struggling to show the results , is there an easy way to embed a calendar view or a list of the existing events in an email ?
Thanks
M
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
12 | |
9 | |
7 | |
7 | |
7 |
User | Count |
---|---|
19 | |
18 | |
17 | |
10 | |
7 |