Mutation
mutation ResolveCustomerForMSTeamsChannel($input: ResolveCustomerForMSTeamsChannelInput!) {
resolveCustomerForMSTeamsChannel(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
customer {
id
externalId
fullName
shortName
email {
email
isVerified
verifiedAt {
__typename
}
}
avatarUrl
}
}
}Variables
{
"input": {
"msTeamsTeamId": "id",
"msTeamsChannelId": "id"
}
}Response
{
"data": {
"resolveCustomerForMSTeamsChannel": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
},
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"email": "string",
"isVerified": true,
"verifiedAt": {
"__typename": "DateTime"
}
},
"avatarUrl": "string"
}
}
}
}Mutations
resolveCustomerForMSTeamsChannel
Finds or creates a Plain customer associated with the Microsoft Teams users in the given channel, using the workspace’s connected MS Teams integration. Useful for bootstrapping a support thread from a Teams channel conversation.
MUTATION
resolveCustomerForMSTeamsChannel(input: ResolveCustomerForMSTeamsChannelInput!): ResolveCustomerForMSTeamsChannelOutput!Arguments
input
error
customer
Mutation
mutation ResolveCustomerForMSTeamsChannel($input: ResolveCustomerForMSTeamsChannelInput!) {
resolveCustomerForMSTeamsChannel(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
customer {
id
externalId
fullName
shortName
email {
email
isVerified
verifiedAt {
__typename
}
}
avatarUrl
}
}
}Variables
{
"input": {
"msTeamsTeamId": "id",
"msTeamsChannelId": "id"
}
}Response
{
"data": {
"resolveCustomerForMSTeamsChannel": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
},
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"email": "string",
"isVerified": true,
"verifiedAt": {
"__typename": "DateTime"
}
},
"avatarUrl": "string"
}
}
}
}Was this page helpful?

