Update a custom ticket field with value from Zendesk app



Gepostet 03. Nov. 2023

Hello Zendesk Community,

I'm experiencing a challenge with my two Zendesk apps working in tandem. One app successfully fetches and updates a custom field named 'CustomerID' while the second app is expected to retrieve a phone number using this 'CustomerID' and subsequently update another custom field named 'Phone number'. Unfortunately, the latter step isn't happening as intended.

Workflow:

  1. The first Zendesk app fetches the 'CustomerID' from an external source and populates a custom field in Zendesk with the same name.
  2. The second Zendesk app takes this 'CustomerID', makes an API request via an Azure function to another external system, and is expected to retrieve a phone number in response.
  3. The phone number received should then be used to update the 'Phone number' custom field in Zendesk.

However, I'm encountering a console error suggesting there might be an issue with the format or content of the response:

TypeError: response.json is not a function

Everything works, but updating the 'Phone number' custom field. 

To clarify further, the 'CustomerID' is always provided by the first app, so that's not the root of the issue. The challenge seems to arise in the interaction of the second app, the Azure function, and the custom field in Zendesk.

I'm reaching out to the community to see if anyone has faced a similar problem, or if there are insights on what could be causing this inconsistent behavior. Potential solutions or troubleshooting suggestions would be extremely valuable.

 

Let me know if you want some snippets of the code (either frontend or backend). 


0

1

1 Kommentar

A note to the flow is that while the first Zendesk app which updates the custom field 'CustomerID' is fetched immediately, the second Zendesk app which fetches the phone number from the CustomerID takes a few seconds to finish it's job. I suspect the issue is to be found here. 

I don't know exactly how the custom fields are being updated; if it's a one time thing when the ticket has been loaded, or if the custom fields are updated several times? 

0


Anmelden, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post