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
I've tried using the user ID, emails, manually typing the emails etc.
email format: email@example.com
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
Solved! Go to Solution.
I have also seen this error with this new preview Create a Chat action. I have actually created an issue on GitHub for this:
I will keep you posted on the progress.
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.",
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 🙂
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.
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...
@cdigerlando i actually did not fix it, i want to store the "members to add" email in a database and get them using sql server connector with some filtering and create an string with the result and put them inside the field "members to add" but it failed that way, the only way i could make it work is by manually put the email of the member in the field, and it worked like half the time.
@cdigerlando you could try some different format, i know my organisation use two format, and somehow one was working better than the other. We have 'firstname.lastname@example.org' and 'email@example.com' and the one with the login was working better for me.
From memory using the users email address didn't work for me either, I used their 'User ID'. Use the 'Search for Users' function & enter the desired usernames email. Then use the 'user ID' output from that function in the create a chat function.
I fix my issue, when i was creating my string with the user email, i was putting a ";" at the end of each email. i tried removing the last ";" of my emails string and it worked. i guess that the actions was expecting another email but none was given and he didn't know what to do...
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.