Hi @EnikoKaloz,
Do you want to update the Calendar event if the item is modified in your SharePoint list?
Could you please show a bit more about your SharePoint list?
Further, do you want to achieve your needs wihtin one flow?
If you want to achieve your needs within one flow, I afraid that there is no way to achieve your needs in Microsoft Flow currently.
You could consider take a try to create two separated flows to achieve your needs. I have create a SharePoint list on my side and the data structure of it as below:
Note: The Event ID column is used to store the event id of my calendar event. The Event ID column would be filled using "Update item" action. The ModifiedEvent column is a Yes/No type column and the default value of it is No, if the user modify his list element, he should modify the value of ModifiedEvent column into Yes.
1. When an item is created or modified in SharePoint list, create or update an event in Outlook calendar:
@equals(triggerBody()?['ModifiedEvent'], false)
Within "If/yes" branch of Condition 2, add a "Start an approval" action, then add a Condition 3, left input box set to Response dynamic content of "Start an approval" action, right input box set to Approve. Within middle drop down, choose is equal to.
Within "If/yes" branch of Condition 3, add a "Create event (V2)" action and then add a "Update item" action, Event ID field set to Id dynamic content of "Create event (V2)" action.
- Within "If/no" branch of Condition, add a Condition 4, click "Edit in advanced mode", type the following formula:
@equals(triggerBody()?['ModifiedEvent'], true)
Within "If/yes" branch of Condition 4, add a "Update event (V2)" action.
Image reference:
The "If/yes" branch of Condition:
The "If/yes" branch of Condition 3:
The "If/no" branch of Condition:
The flow works successfully as below:
2. When an event is updated in Outlook calendar, update the corresponding item in SharePoint list:
- Add a "When an event is modified (V2)" trigger.
- Add a "Get items" action.
- Add a "Apply to each", input parameter set to output of "Get items" action.
- Within "Apply to each", add a Condition, left input box set to Event ID dynamic content of "Get items" action, right input box set to Id dynamic content of the trigger. Within middle drop down, choose is equal to.
Within "If/yes" branch of Condition, add a "Update item" action.
Image reference:
The flow works successfully as below:
Best regards,
Kris