Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Bad Request when replying in MS Teams (time discrepancy)

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I am trying to create tasks in MS Planner based on MS Teams messages (this works just fine) and reply to a Teams message when the correspponding task has been closed in Planner. Below is an Image of the Flow that should reply to a message when the task is closed.

Flow OverviewFlow Overview

But I always get the same error when running the Flow "Status 400: Bad Request". I suspect it has something to do with the time inside the Flow being behind by 2 hours (07:38:38 instead of the correct time 09:38:38), but I dont know how to correct that.

 

{
 "error": {
 "code": "BadRequest",
 "message": "Bad Request",
 "innerError": {
 "date": "2020-07-07T07:38:38",
 "request-id": "b402891c-e208-4439-8d78-0a70725f20bb"
 }
 }
}

 

Failed FlowFailed Flow

 

Thanks in advance.

  • Priyae Profile Picture
    on at
    Re: Bad Request when replying in MS Teams (time discrepancy)

    Hey @LuiG

     

    Thank you for the update that the issue is resolved . Please check the below link for your reference :

    https://docs.microsoft.com/en-us/power-automate/use-expressions-in-conditions


    And it is by design that you need to connect Teams message ID to the MS Planner Task (other than just putting it in the title)

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • LuiG Profile Picture
    4 on at
    Re: Bad Request when replying in MS Teams (time discrepancy)

    Hey @pre 

     

    the issue was caused by a wrong value in the "Message" field, I tried to use the content of the Teams message (value Titel) but the right value seems to be the Message ID. I was a bit supprised, that Flow didnt tell me that, is there any documentation about Flow modules and what values they accept?

     

    Also, is there a way to link the Teams message ID to the MS Planner Task (other than just putting it in the title)?

     

    Thanks in advance

  • Priyae Profile Picture
    on at
    Re: Bad Request when replying in MS Teams (time discrepancy)

    Hey @LuiG

     

    It might not be in specific to the network issue which I can say, because the error seems to be generic though..Usually this happens for network connectivity for fetching the connectors in flow . For example to debug it , you can try F12 in your browser when running the flow and check for the network trace logs..

    Moreover if you can see my screenshot there is a difference in the Connector which is in your screenshot  i.e. Post a reply to a message (V2) Preview . Your screenshot display as Post a reply to a message (V2) 2. Looks like you are using the CDS Version 2.0 there might be some issues related to this which can be investigated by creating a ticket through support .

  • LuiG Profile Picture
    4 on at
    Re: Bad Request when replying in MS Teams (time discrepancy)

    Hey @pre

     

    thanks for the fast response. The date field is not a part of the Flow, but part of the error message that the Flow puts out when I run it. Did you try to run flow you have created?

     

    What do you have in mind when you say the error might be related to network connection? As far as I know, both Services are running on Microsofts Servers, so it shouldnt be related to my companys network configuration, correct?

  • Priyae Profile Picture
    on at
    Re: Bad Request when replying in MS Teams (time discrepancy)

    Hey @ LuiG

     

    The Bad gateway error might not be be related to date field. May I know where exactly you are applying the date field in the flow which is posted by you .  As you are trying to do integration with Teams, it should be related to network connection . But based on the Flow screenshot I have tried at my end but could not see any error 

     

     

    pre_0-1594112137889.png

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow