cancel
Showing results for 
Search instead for 
Did you mean: 

Office365 Outlook Create Event: Ability to set the "private" flag

In the Office365 Outlook Create Event step, I would like the ability to set the "private" flag of the event. It would be an additional advanced field, similar to "Is HTML" and "Show As".

 

Status: New
Comments
Regular Visitor

Use case:

As a consultant I work for several customers. My customers each provide me an Office 365 user for collaboration and access rights to databases etc. Currently, my customers can see my calender in their own tenant, only. Customers could plan appointments better if they could see my complete list of available time slots, thus I would like to copy my appointments from my own calender to my calender in my customers tenant but flagging it as private appointment, so that customer A can't see what I will discuss with customer B, but only my free/busy times. (Unfortunately, sharing my calender's free/busy times doesn't work as expected when plannng a new appointment.)

Post Prodigy

In fact you can set the sensitivity flag using GRAPH API.

See SetSensitivity flow for details.

Frequent Visitor

Thanks, this is a great solution @VictorIvanidze 

 

I was able to use your method to implement this for calendar events.

 

1. Add a step with the action 'Invoke an HTTP request / HTTP with Azure AD'

 

2. Set both the Base Resource URL and Azure AD Resource URI to:

 

 

https://graph.microsoft.com

 

 

 

3. Authenticate with an account that has permission to read/write to the calendar

 

4. Set values for the Invoke an HTTP request action:

 

Method: PATCH

URI:

 

 

https://graph.microsoft.com/v1.0/me/events('ID OF CALENDAR EVENT HERE')

 

 

Body:

 

 

{"sensitivity":"private"}

 

 

 

This will update the calendar event and flag it as private. Setting the sensitivity as 'normal' will make the event public.

Regular Visitor

@TullyH , I tried your instructions. But, I keep getting an error message "Id is malformed."

Post Prodigy

Hi @Eddie24,

 

could you show your PATCH request?

Regular Visitor
Regular Visitor

Annotation 2020-03-31 120941.png

Frequent Visitor

Hi @Eddie24,

 

Your PATCH request is the same as what I have been using. The malformed ID error you are getting seems unrelated to updating the calendar event. Can you try creating a new flow with just these steps and seeing if it works?

 

Regular Visitor

@TullyH I have created a test flow and got the same error message. I also get the same error when entering it directly at https://developer.microsoft.com/.

Post Prodigy

Hi @Eddie24,

 

try to execute the same PATCH request using GRAPH Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer