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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Teams - Create a chat ...
Power Automate
Answered

Teams - Create a chat - Bad Request 400 error

(2) ShareShare
ReportReport
Posted on by 22

Hi everyone,

 

I'm in the process of setting up a ticket based technical support system.
I'd like to create a group chat with the user who submitted the ticket & the operator who was assigned the ticket.

I'm inputting the emails of the user & operator but am receiving a Bad Request 400 error

    "code""BadRequest",
    "message""Invalid OData type specified: \"Microsoft.Teams.GraphSvc.aadUserConversationMember\"",


I've tried using the user ID, emails, manually typing the emails etc.
email format: firstname.lastname@domain.com.au
user ID: obtained through search for users V2

The user, operator & flow connector are all on the same domain so should be able to initiate the chat - I've tried through other flow connector/accounts and having the same issues.

I'd love for this to be a silly mistake and a simple fix! x)

Edit: Someone from my team believes it may be a bug with the 'Create a chat' feature.
Specifically, because it uses the aadConversationMember class requires aadUser or something similar to add the Teams account to the chat. Because it's a new 'conversation' there's currently no conversation members. I've added the 'peak code' below

{
    "inputs": {
        "host": {
            "connectionName""shared_teams",
            "operationId""CreateChat",
            "apiId""/providers/Microsoft.PowerApps/apis/shared_teams"
        },
        "parameters": {
            "item/members""@{outputs(insert-operator-email-here};@{outputs(insert-user-email-here}"
        },
        "authentication""@parameters('$authentication')"
    }
}
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,855 Most Valuable Professional on at

    Hi @Nyko,

     

    I have also seen this error with this new preview Create a Chat action. I have actually created an issue on GitHub for this:

    https://github.com/MicrosoftDocs/BusinessApplicationPlatform-Connectors-public/issues/375

     

    I will keep you posted on the progress.

  • Nyko Profile Picture
    22 on at

    Thanks Expiscornovus! 🙂
    It's a definite head scratcher...

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Did anyone found a solution yet ? got the same error...

  • JonBerkowitz Profile Picture
    2 on at

    Same issue, hope they fix it soon!

     

  • Nyko Profile Picture
    22 on at

    Nothing yet - frustrating because it could be a great feature!

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

    Hi @Nyko@JonBerkowitz & @Anonymous,

     

    In my dev environment it works again. I am unable to reproduce the issue anymore. Looks like it is fixed.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That's great, but for some reason it still doesn't work for me. The "create a chat" still crash my flow
    But i got a different error now so i guess it may be fixable now, this is what i got:

     

    "code": "BadRequest",
    "message": "Exception has been thrown by the target of an invocation., Exception has been thrown by the target of an invocation.",

     



  • Nyko Profile Picture
    22 on at

    Hi Jay - it's working for me now.
    I initially got the same error, but it was because the connection/account I was using to action the 'Create a chat' was from a different domain/organisation. Once I switched to a connection on the same domain it worked.

    Thanks to everyone that replied & for the Microsoft Fairy's for fixing the issue 🙂

  • lesawibe Profile Picture
    2 on at

    I have same problem... no matter how much I simplified setup of connector again I have same message. 

    Exception has been thrown by the target of an invocation., Exception has been thrown by the target of an invocation.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I found a way to fix my problem, i am using a variable to select wich person will be added to the group, i tested by manually inserting them in the field "members to add" and it worked, but when i use a custom variable in that field, i get the invocation exception...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard