How to Set Microsoft Teams Status Using Power Automate?

Do you know how to update your Microsoft Teams status using Power Automate?

Here, I will show how to set Microsoft Teams status using Power Automate. Also, we will discuss how to update teams status messages (Available, Away, Busy, etc.) via Power Automate.

How to Set Microsoft Teams Status Using Power Automate [Available]

To set the MS team status using Power Automate, refer to the scenario.

In the screenshot below, you can see the MS team status is Away. Now, I want to make it available using Power Automate.

How to update the Microsoft Teams status using Power Automate

Follow the below provided steps:

1. Navigate to the Power Automate Home page, click + Create, and select ‘Instant cloud flow‘. In the next window, select the ‘Manually trigger a flow‘ trigger, provide a flow name, and click the Create button.

We can do this with the help of a Power Automate Rest API call.

2. In the next step, add a ‘Send an HTTP request to SharePoint‘ flow action. Provide the required parameters:

  • Site Address: Provide ‘https://presence.teams.microsoft.com‘.
  • Method: Select the method as the ‘PUT‘ method.
  • Uri: Enter the URI as /v1/me/forceavailability.
  • Headers: Copy as the below given code.
  • Body: Insert the below code.
Headers: {
  "Content-Type:": "application/json"
}

Body: {    "availability": "Available"}
Set Microsoft teams status to available with Power Automate

3. Now, save and test the flow manually.

4. Now, you can go and check your Microsoft Teams. The status will be updated to Available, as shown in the below figure:

How to Set Microsoft Teams Status Using Power Automate
In the same way, you can update the Microsoft teams to 'Away', 'Busy', 'Be right back', 'Do not disturb' by replacing the Available in the Body content of Send https request to SharePoint flow action.

This is how to change the Microsoft Teams status using Power Automate.

See also  Power Apps Combo box with SharePoint list

Set MS Teams Status Message Using Power Automate

To set the Microsoft Teams status message using Power Automate, follow the example below.

Power Automate update teams status message

Follow the below steps to learn how to achieve this:

1. Make a Power Automate Instant cloud flow.

2. In the ‘Send an HTTP request to SharePoint‘ flow action, change the following parameters.

  • Site Address: Provide ‘https://presence.teams.microsoft.com‘.
  • Method: Select the method as the ‘PUT‘ method.
  • Uri: Enter the URI as /v1/me/publishnote.
  • Headers: Copy as the below given code.
  • Body: Insert the below code.

To set up the status message, we should add XML code at the end of the message, as shown below.

Body: {
    "message": "Recording a new video, please do not disturb<pinnednote></pinnednote>"
}
How to set MS Teams status message with Power Automate

Once the flow is ready, save and run the flow manually.

Output:

As you can see in the below image, the Microsoft Teams status message has been updated.

Power Automate update teams status message

This is how to update Microsoft Teams status messages using Power Automate flow.

You may like:

Conclusion

In this article, we learned how to update Microsoft Teams status using Power Automate. I hope this blog post helps you to understand better.

Here, I have covered the topics like:

  • Power Automate set the Microsoft Teams status to Available/Busy/Away/Be right back and Do not disturb
  • How to update the MS Teams status message with Power Automate
>