web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Setting MS Teams statu...
Power Automate
Answered

Setting MS Teams status message

(1) ShareShare
ReportReport
Posted on by 44

Hello everybody, I'm trying to build a manual flow to change my status message in MS Teams.

I based the flow on this 2 posts:

 

https://myteamsday.com/2021/09/22/setpresence/

https://www.damobird365.com/teams-status-update-via-power-automate/

 

 

However, my flow stucks during execution and never ends.

This is my flow:

Gilgamesh_0-1635173543121.png

and this is an example of execution:

Gilgamesh_1-1635173676622.png

(I waited until 5 minutes, then I stopped it).

 

Could anyone explain to me what is wrong or why flow stucks, please?

Thank you all!

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Gilgamesh,


    In both examples they are not using a Bearer token but just using the connection of the Send an HTTP request action. The action itself should work without the Bearer token.

     

    Can you remove the Authorization header with the Bearer token from your request header and see if it works?

  • Gilgamesh Profile Picture
    44 on at

    Thank you for your reply, @Expiscornovus , but I've added Bearer in HTTP request, after trying without.

    If I not add bearer, I get this error:

     

    {"message":"The request is invalid.","modelState":{"$type":"System.Web.Http.HttpError, System.Web.Http","incomingNote.expiry":{"$type":"System.String[], System.Private.CoreLib","$values":["An error has occurred."]}}}
    clientRequestId: 34a161...

  • Verified answer
    Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Gilgamesh,

     

    Just to double check. You tried something like below?

     

    And where is your tenant located? Like Damien mentioned in his blogpost the presence endpoint might have a different address when it is in the US.

     

    publishnote_presence.png

     

    presenceput_example.png

  • Gilgamesh Profile Picture
    44 on at

    My tenant is located in west europe: probably somewhere exists a list for MS services based on cloud regions, like

    westeurope.presence.teams ecc. 

    It would be nice to find out the correct address for that region...

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Gilgamesh,

     

    A couple of questions:

    1. Can you share a screenshot of the configuration of the Send an HTTP request to SharePoint action from your latest test?

    2. Can you test it without the expiry property. Please try something like below in the body of the PUT request for the publishnote method

    {
     "message": "Only update the message"
    }

     

    Btw, I have just tested it myself in one my tenants which is located in EMEA region. I wasn't able to reproduce it, I can use the same site address for presence without any issues.

     

    testemea_presence.png

  • Gilgamesh Profile Picture
    44 on at

    Effectively, using only message field in body request was succesfully: message expiration is automatically set to 01/01/10000

    Gilgamesh_1-1635319812256.png

    For me it's satisfying for now: thank you so much @Expiscornovus !

     

  • Community Power Platform Member Profile Picture
    on at

    Does this code for "https://presence.teams.microsoft.com" still work for everyone?  I keep getting a failure when I run the flow.

  • samUS123 Profile Picture
    3 on at

    Same with me

     

  • Takusd Profile Picture
    2 on at

    is it solved?

  • Community Power Platform Member Profile Picture
    on at

    I don't use this feature in production, but I have successfully tested it this year. I assume that its going to just stop working for everyone at some point. As far as I am aware, Microsoft Teams has deprecated the use of the forceAvailability property in favor of the Microsoft Graph REST API to set the state of a user’s presence session as an application. Presence sessions are used to set the user’s presence status in Teams. You can set the state of a user’s presence session using the setPresence method. https://learn.microsoft.com/en-us/power-platform/important-changes-coming

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard