Send Custom Organization field content into a Custom Ticket Field
Hi everyone,
I'm trying to send Organization "multi-line" text field content into "Ticket" multi-line text field content.
I read that this was not possible with simple triggers and that I should rather use Webhooks.
The thing is, I'm only able to to make them works when I'm using "PUT" method.
With POST method, I've got the following error message :
{"error":"InvalidEndpoint","description":"Not found"}
My ENDPOINT URL is the following :
https://domain.zendesk.com/api/v2/tickets/{{ticket.id}}.json
The Request I launch is that one :
{
"ticket": {
"custom_fields": [
{
"id": 13257384091921,
"value": "{{ticket.organization.custom_fields.important_information.title}}"
}
]
}
}
Is there anything I'm not doing correctly ?
I'll take any simple method in order to be able to grab my Org custom field content and push it into my Ticket custom field.
Please note that I can have a lot of different contents into my Org Custom field.
Thanks in advance for your help
Regards
-
Hi Benjamin,
I think you should remove .json at the end of the URL
Best regards,
Raphaël
-
Hi Raphaël,
Thanks for your feedback,Unfortunately the result is exactly the same.
404 Not found :
{"error":"InvalidEndpoint","description":"Not found"}
Endpoint URL :
https://domain.zendesk.com/api/v2/tickets/{{ticket.id}}
Thanks in advance for your help
-
How do you try?
You have to put a value in the ticket.id otherwise it will not work.
+ I tried: {{ticket.organization.custom_fields.important_information.title}} and it didn't work for me but it worked like that: {{ticket.organization.custom_fields.important_information}}
-
Hi again Raphaël,
When switching to "PUT" rather than "POST" + referring a ticket.id, it works correctly, but..
The field content do not seem to absorb the variable contained into my {{ticket.organization.custom_fields.important_information}} field, it directly post "{{ticket.organization.custom_fields.important_information}}" into the ticket field, without taking the data referred into it (which is "TEST!" actually).
Same result when adding .title at the end, of course ^^Maybe there is something wrong in my process ?
Thanks again for your help.
Iniciar sesión para dejar un comentario.
4 Comentarios