Búsquedas recientes
No hay búsquedas recientes
Sending a mail to end user without specifying his email in the API request
Publicado 28 feb 2023
I have manually added an end user along with his mail. his ID is 12345.
I set up a trigger for sending a mail to the requester.
I then send a "requests" request with the end user ID as follows:
{
"request": {
"requester": {
"id": 12345
},
"subject": "Test ticket created 3",
"comment": {
"body": "Details of test ticket 3"
}
}
}
I expected that Zendesk will use the end user's ID to send him a mail, but I get:
I expected that Zendesk will use the end user's ID to send him a mail, but I get:
{
"error": "RecordInvalid",
"description": "Record validation errors",
"details": {
"email": [
{
"description": "Email: cannot be blank",
"error": "BlankValue"
}
]
}
}
Any idea how can I have Zendesk sending a mail to existing end users without specifying their mail in the request, but only use their id?
Any idea how can I have Zendesk sending a mail to existing end users without specifying their mail in the request, but only use their id?
0
2
2 comentarios
Ilan Avigdor
Greg, thank you for your answer and directing to the relevant documentation!
After reading it, I seems like I found a workaround for this use case by using the "email_ccs" field.
It allows specifying the user_id without his email:
0
Greg Katechis
Hi Ilan! Since the Requests API is meant for end users, there isn't a concept of "user id" that would be available to them. The only way to ensure that the requester is set correctly is either 1) having the authenticated end user create the request or 2) include the name and email in the request. Take a look at our documentation here.
0
Iniciar sesión para dejar un comentario.