Recent searches
No recent searches
Update organization fields with webhook or API
Posted Jun 07, 2023
We have a system that creates and auto-solves tickets every time a customer performs an action in our platform.
We have a ticket field called "Company ID (ticket)" that is autopopulated by the system when the ticket is created. We have another custom organization field called "Company ID (org)".
We would like for this "Company ID (org)" field to be autopopulated with the value from "Company ID (ticket)", when "Company ID (org)" is not Present. I have tried to do this with webhooks but I am stuck trying to change the org custom field helper with that.
We have a ticket field called "Company ID (ticket)" that is autopopulated by the system when the ticket is created. We have another custom organization field called "Company ID (org)".
We would like for this "Company ID (org)" field to be autopopulated with the value from "Company ID (ticket)", when "Company ID (org)" is not Present. I have tried to do this with webhooks but I am stuck trying to change the org custom field helper with that.
In short, we would like to automatically populate the Company ID organization field when it is empty with the value from the Company ID ticket field.
Has anyone here done something similar? Is it possible to populate organization fields with webhooks?
Has anyone here done something similar? Is it possible to populate organization fields with webhooks?
0
3
3 comments
Alfredo Guillem Fernández-Hidalgo
Hi Ahmed Zaid this solution doesn't work as the trigger copies the text {{ticket.ticket_field_123456789}} into the organization field as is, without substituting it by the actual value
0
Persistent Dev
Hi,
I am trying to add organization_fields by Updating my existing organization id. below is my payload what I am trying to do with my request url, It gives me 200 OK response but organization_fields shows empty in the response records. Why isn't my organization_fields updating?
curl --location --request PUT 'https://{subdomain}.zendesk.com/api/v2/organizations/22179363925523' \
--header 'Authorization: Bearer 8c4448cc5caae330c26c493c42101************************' \
--header 'Content-Type: application/json' \
--data-raw '{
"organization": {
"organization_fields": {
"org_1": "org_field1",
"org_2": "org_field2"
},
"notes": "This is for org",
"group_id": 22151672976147
}
}'
Response:
..
..
0
Aleksandrs Galiullins
I was able to update organization fields as in your example/scenario, please see the attached screenshot as example.
Further clarification is needed in your use case, what type of the fields "org_1" and "org_2" (text, milti-line or drop-down) is used?
I'm going to open a support ticket with you about your issue, where we can collobarate further.
0