Retrieve company name from pbx integration

Infos:

  • Used Zammad version: 3.1
  • Used Zammad installation source: package
  • Operating system: windows
  • Browser + version: Mozilla firefox

Expected behavior:

  • I integrated zammad with our 3CX system, when a person calls that is registered in the ticketsystem 3CX should save the contact info: firstname, lastname, company name and phone number

Actual behavior:

  • Instead of the company name the company id is copied, a numeric value. this is correct, because that is the field that i refer to.

When looking at the url where the information is retrieved http://tickets.riwo.eu/api/v1/users/search?query=*[Number] there is no field that states company name. Is this something that is retrieved through a setting, or would this be a feature request, instead of technical assistance?

What you’re looking for is organization_id which is a user attribute.
I suppose that this behaviour is a bit unexpected for you, but technically correct, as the WebApp does retrieve the user and organization by its ID.

So technically you might need to fetch the organization name in a second request.

Yes, the organization_id is indeed retrieved, which is a number. This is then used as the company name. The company name is not stated in the database page so from where could this be fetched?



Well, that’d be the Organizations endpoint:

/api/v1/organizations/{id}

https://docs.zammad.org/en/latest/api-organization.html#show

Seems reasonable :sweat_smile:, I will give it a try!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.