Sending a mail to end user without specifying his email in the API request
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:
{
I expected that Zendesk will use the end user's ID to send him a mail, but I get:
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?
-
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.
-
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:"email_ccs": [{ "user_id": "12345", "action": "put" }],Adding it ends up with a mail being sent to the end user who's id is 12345
Iniciar sesión para dejar un comentario.
2 Comentarios