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

Update Event (V2) and send the updated event to all Attendees.

I have a SharePoint calendar list called: "Stay Calendar" When an item is created in this calendar it goes through content approval. And when the item is approved(using OOTB approval process) I have a FLOW called "Stay Calendar FLOW" which will Create event (using Create Event(V2)) and sends calendar invitation to all attendees that are in included in the event's attendees.s

Stay Calendar FlowStay Calendar Flow

I also created another FLOW called Update Calendar FLOW, that should update the respective attendees with the updated event info when a particular event is updated. Meaning when a particular event in "Stay Calendar" is updated (say Day or time or Title) and when the updated event is approved, the Update Calendar FLOW should update all attendees with the updated outlook invitation. But my Update Calendar FLOW doesn't seem to work. Any advice is appreciated. 

 

Update Calendar FLOWUpdate Calendar FLOW

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Yudistara,

 

Could you please show more details about the issue within your flow?

Further, could you please show a bit more about the error message?

 

I think there is something issue with your Stay Calendar Flow, the "Create event (V2)" action would create Outlook events within your Outlook calendar based on the amount of the Attendees of the new created SharePoint calendar event. In other words, if there are 4 attendees within your new created SharePoint calendar event, the "Create event (V2)" action would create 4 events within your Outlook calendar.

 

I have made a test on my side and please take a try with the following workaround:

Stay Calendar Flow:

  • Add a "When an item is created" trigger, specify Site Address and List Name set to your Event list.
  • Add a Variables->"Initialize variable" action, Name set to Attendees, Type set to String and Value set to empty.
  • Add a "Apply to each" action, input parameter set to Attendees dynamic content of the trigger. Within "Apply to each" action, add a Compose action, Inputs field set to following formula:
concat(item()?['Email'],';',variables('Attendees'))

Add a "Set variable" action, Name set to Attendees, Value set to output of the "Compose" action.

 

  • Under "Apply to each" action, add a "Create event (V2)" action, specify Calendar id, Required attendees field set to Attendees variable, type ID dynamic content of the trigger within the Body field of the "Create event (V2)" action, Is HTML field set to Yes.

Image reference:16.JPG

17.JPG

 The flow works successfully as below:

18.JPG

 

19.JPG

 

Update Calendar Flow:20.JPG

 

21.JPG

Within Condition box of the "Filter array" action, click "Edit in advanced mode", type the following formula:

@and(contains(item()?['Body'], string(triggerBody()?['ID'])),contains(item()?['Body'], triggerBody()?['Description']))

 

 

Best regards,

Kris

 

 

 

Community Support Team _ Kris Dai
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

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Yudistara,

 

Could you please show more details about the issue within your flow?

Further, could you please show a bit more about the error message?

 

I think there is something issue with your Stay Calendar Flow, the "Create event (V2)" action would create Outlook events within your Outlook calendar based on the amount of the Attendees of the new created SharePoint calendar event. In other words, if there are 4 attendees within your new created SharePoint calendar event, the "Create event (V2)" action would create 4 events within your Outlook calendar.

 

I have made a test on my side and please take a try with the following workaround:

Stay Calendar Flow:

  • Add a "When an item is created" trigger, specify Site Address and List Name set to your Event list.
  • Add a Variables->"Initialize variable" action, Name set to Attendees, Type set to String and Value set to empty.
  • Add a "Apply to each" action, input parameter set to Attendees dynamic content of the trigger. Within "Apply to each" action, add a Compose action, Inputs field set to following formula:
concat(item()?['Email'],';',variables('Attendees'))

Add a "Set variable" action, Name set to Attendees, Value set to output of the "Compose" action.

 

  • Under "Apply to each" action, add a "Create event (V2)" action, specify Calendar id, Required attendees field set to Attendees variable, type ID dynamic content of the trigger within the Body field of the "Create event (V2)" action, Is HTML field set to Yes.

Image reference:16.JPG

17.JPG

 The flow works successfully as below:

18.JPG

 

19.JPG

 

Update Calendar Flow:20.JPG

 

21.JPG

Within Condition box of the "Filter array" action, click "Edit in advanced mode", type the following formula:

@and(contains(item()?['Body'], string(triggerBody()?['ID'])),contains(item()?['Body'], triggerBody()?['Description']))

 

 

Best regards,

Kris

 

 

 

Community Support Team _ Kris Dai
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

samstamey
New Member

Hello,

I am trying to create a flow for a sharepoint calendar that when someone enters an an event it will go through an approval process then will be posted to a sharepoint calendar once it's approved. It sounds like you have a solution for that. Would you mind sharing that wth me?

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,926)