Hi, I'm using a Sharepoint add-in that manages time off, the add-in creates a Sharepoint list/calendar where the time off entries are stored, I am using a flow where it then enters these into an Outlook calendar using a "Sharepoint when an item is created" trigger and then an "Outlook create an event" action.
What I want to do is create a flow where it will delete the calendar entry if it is deleted from the Sharepoint list. The only availble sharepoint attrbute available to the When an item is deleted trigger is ID, so I have stored the ID in the body of each event when they are created (with no other text).
My current idea for a flow would be somehting like:
Can anyone give me an example of how this could be done, I've done a lot of Googling and tried different configurations and I'm a bit stuck as I'm not proficient in Power Automate.
Thanks In advance for any help!
Rick
Solved! Go to Solution.
Hi @RichardHy,
Please refer to the following steps to approach that:
1. Create a trigger when an item is deleted;
2. Get Events;
3. Apply to each action + HTML to text action, loop events, and convert their body to text;
4. Create a condition action, check if the body equals to the deleted item ID (this part should convert the integer ID to a String ID):
string(triggerOutputs()?['body/ID'])
5. If yes, delete the event by using Event ID get from the Get events.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RichardHy,
Please refer to the following steps to approach that:
1. Create a trigger when an item is deleted;
2. Get Events;
3. Apply to each action + HTML to text action, loop events, and convert their body to text;
4. Create a condition action, check if the body equals to the deleted item ID (this part should convert the integer ID to a String ID):
string(triggerOutputs()?['body/ID'])
5. If yes, delete the event by using Event ID get from the Get events.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
26 | |
26 | |
23 | |
14 | |
10 |
User | Count |
---|---|
62 | |
56 | |
29 | |
28 | |
24 |