Hi guys;
in the API, getDepartmentList returns an array of public-only departments. Anyway thoughts on how we can adjust for getting the full department list?
Thanks,
Page 1 of 1
getDepartmentList returns public departments
#2
Posted 25 November 2008 - 10:11 PM
Hmm. Given that the getDepartmentsList method returns an array of departments, each of which having a "ispublic" attribute, I would expect it to return all departments, both public and private, leaving it up to the API implementer to decide which to show.
If that isn't what's actually happening, I can only assume that the internal Kayako function that we call to get that list isn't returning what we expect. I'll look into it for you
If that isn't what's actually happening, I can only assume that the internal Kayako function that we call to get that list isn't returning what we expect. I'll look into it for you
Andrew Gillard
Lead Developer - Craig Brass Systems
Lead Developer - Craig Brass Systems
#3
Posted 25 November 2008 - 10:30 PM
Yes, I've confirmed that the Kayako function that we call to get that list of departments only returns public departments, which is helpful. Bear with me and I'll get that fixed in the API.
I suspect that getStatusList() and getPriorityList() may well have the same bug, so I'll fix them at the same time, if necessary.
I suspect that getStatusList() and getPriorityList() may well have the same bug, so I'll fix them at the same time, if necessary.
Andrew Gillard
Lead Developer - Craig Brass Systems
Lead Developer - Craig Brass Systems
#4
Posted 25 November 2008 - 11:03 PM
Try replacing your api.class.php file (/integrationapi/lib/api.class.php from your helpdesk install directory) with the attached file. If that works properly and fixes the bugs that you've been experiencing (please let us know!), I'll upload it as API version 1.0.2. It's passed my tests, obviously, but testing it on a barely-changed installation is rarely the same as testing on a fully operational system.
Thanks for reporting this
Thanks for reporting this
Attached File(s)
-
api.class.php (26.5K)
Number of downloads: 4
Andrew Gillard
Lead Developer - Craig Brass Systems
Lead Developer - Craig Brass Systems
#5
Posted 26 November 2008 - 02:21 AM
QUOTE (Andrew Gillard @ Nov 25 2008, 06:03 PM) <{POST_SNAPBACK}>
Try replacing your api.class.php file (/integrationapi/lib/api.class.php from your helpdesk install directory) with the attached file. If that works properly and fixes the bugs that you've been experiencing (please let us know!), I'll upload it as API version 1.0.2. It's passed my tests, obviously, but testing it on a barely-changed installation is rarely the same as testing on a fully operational system.
Thanks for reporting this
Thanks for reporting this
I certainly will Andrew. Thanks for the prompt response and fix. I am building out a small app to integrate with our CRM system. Great piece of work you've got going here Andrew.
Share this topic:
Page 1 of 1
Sign In »
Register Now!
Help

Back to top








