Craig Brass Systems Forum: getDepartmentList returns public departments - Craig Brass Systems Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

getDepartmentList returns public departments

#1
User is offline   moosarka 

  • Member
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 24-November 08
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,

0

#2
User is offline   Andrew Gillard 

  • Staff - Lead Developer
  • Pip
  • Group: Developers
  • Posts: 97
  • Joined: 04-March 07
  • Gender:Male
  • Location:Basingstoke, United Kingdom
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 smile.gif
Andrew Gillard
Lead Developer - Craig Brass Systems
0

#3
User is offline   Andrew Gillard 

  • Staff - Lead Developer
  • Pip
  • Group: Developers
  • Posts: 97
  • Joined: 04-March 07
  • Gender:Male
  • Location:Basingstoke, United Kingdom
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.
Andrew Gillard
Lead Developer - Craig Brass Systems
0

#4
User is offline   Andrew Gillard 

  • Staff - Lead Developer
  • Pip
  • Group: Developers
  • Posts: 97
  • Joined: 04-March 07
  • Gender:Male
  • Location:Basingstoke, United Kingdom
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 smile.gif

Attached File(s)


Andrew Gillard
Lead Developer - Craig Brass Systems
0

#5
User is offline   moosarka 

  • Member
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 24-November 08
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 smile.gif


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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users