Skip to main content

Notifications

Power Automate - AI Builder
Unanswered

Power Automate Flow Has Stopped Working - Teams Status Update

Like (1) ShareShare
ReportReport
Posted on 4 Oct 2024 14:27:03 by 6

Hi,

 

I have a flow setup in Power Automate to change my status in MS Teams to Offline after 6p. It worked fine until Sep 19th; I'm now getting a 401 Unauthorized error. At first, I thought maybe I just needed to refresh the connection for that action using my credentials, so I changed the connection. However, it still throws the same error. Following are the raw input and output. Any help in this regard would be highly appreciated.

 

 

Raw Input:

==============

{

    "host": {

        "connectionReferenceName": "shared_sharepointonline-1",

        "operationId": "HttpRequest"

    },

    "parameters": {

        "dataset": "https://presence.teams.microsoft.com\n",

        "parameters/method": "PUT",

        "parameters/uri": "/v1/me/forceavailability/",

        "parameters/body": "{\n  \"availability\": \"Offline\",\n  \"activity\": \"OffWork\"\n}"

    }

}

 

 

Raw Output:

==============

{

    "statusCode": 401,

    "headers": {

        "Cache-Control": "no-store, no-cache",

        "Pragma": "no-cache",

        "Set-Cookie": "ARRAffinity=xxxxxxxxxxxxxxxxxxxxxxxxxx;Path=/;HttpOnly;Secure;Domain=xxxxxxxxxxxxxxxxxxxxxxxxxx-002.p.azurewebsites.net,ARRAffinitySameSite=xxxxxxxxxxxxxxxxxxxxxxxxxx;Path=/;HttpOnly;SameSite=None;Secure;Domain=xxxxxxxxxxxxxxxxxxxxxxxxxx-002.p.azurewebsites.net",

        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",

        "x-ms-request-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",

        "X-Content-Type-Options": "nosniff",

        "X-Frame-Options": "DENY",

        "x-ms-tenant-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",

        "Timing-Allow-Origin": "*",

        "x-ms-apihub-cached-response": "false",

        "x-ms-apihub-obo": "false",

        "Date": "Thu, 03 Oct 2024 16:15:36 GMT",

        "Content-Length": "187",

        "Content-Type": "application/json",

        "Expires": "-1"

    },

    "body": {

        "status": 401,

        "message": "clientRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxx",

        "source": "https://presence.teams.microsoft.com/v1/me/forceavailability/",

        "errors": []

    }

}

 

 

Thanks a lot!

 

Kashif.

Categories:
  • CU04101421-2 Profile Picture
    CU04101421-2 6 on 07 Oct 2024 at 13:33:45
    Power Automate Flow Has Stopped Working - Teams Status Update
    That flow worked fine for months until Sep 19th. I'll review the info in the link you have provided.
     
    Thanks,
     
    Kashif.
  • abc 123 Profile Picture
    abc 123 696 on 04 Oct 2024 at 15:55:08
    Power Automate Flow Has Stopped Working - Teams Status Update
    Maybe it needs to be POST instead of PUT?
     
    Also, maybe this is the new way, and your way was deprecated?

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 #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,316

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,290

Leaderboard
Loading started