Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Automated calendar script resets settings such as "Show as"

Posted on by
Hello fellow Power users!
 
I am trying to replace an old and well functioning VBS script which I run in my classic Outlook calendar to do some automation. I have set up a flow in Power Automate for this, but it is behaving in surprising ways which I need help with.
 
My flow uses Get calendar view of events (V3) to check all events occurring within the coming week. 
I then want to check for any meetings with sensitivity set to Private and set a custom category "Private". 
I use Update event (V4) and set the category to "Private" - which works.
BUT at the same time the "Show as" gets set to "free" and the sensitivity is reset although they are not mentioned in the Update event (V4)
 
I would be very happy if someone could suggest how I can ensure that any settings not specifically mentioned in the Update event (V4) are preserved.
 
I did get some tips from Copilot to change the code manually, but that is apparently not possible when using New designer - and I can't seem to turn that off.

UPDATE December 2: I made a workaround which seems to work. I save the states in variables. Not convenient, especially since maybe also other settings are reset.
In the beginning of the script I added two actions, Initialize variable ShowAs and Initialize variable Sensitivity. 
The first actions in the main loop is to Set variable ShowAs to the current value of ShowAs, and the same for Sensitivity.
In each Update event (V4) I have to ensure that I, apart from the "real actions", set ShowAs to the variable ShowAs and Sensitivity to the variable Sensitivity.
 
Very clunky and inconvenient. Update event (V4) should only update values which are expressivly set in the action. Everything else in the event should be untouched.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard