You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Getting objects containing only NULL fields

Accepted answer
edited Jun 8, 2022 12:01PM in General Technical Discussions 1 comment


Hello everyone,

I'm currently facing a strange behaviour on both Knowledge Foundation API and Connect PHP API : Values returned by GetSmartAssistantSearch/SearchContent/Fetch are Objects containing only null fields.

Here is a var_dump of a fetched account for example :

["Account"]=> object(RightNow\Connect\v1_2\Account)#22 (25) { ["ID"]=> NULL ["LookupName"]=> NULL ["CreatedTime"]=> NULL /* [...] */ ["PasswordExpirationTime"]=> NULL ["Phones"]=> NULL ["Profile"]=> NULL ["SalesSettings"]=> NULL ["ServiceSettings"]=> NULL ["Signature"]=> NULL ["StaffGroup"]=> NULL }

This behaviour seems strange to me because :

  • I called the InitConnectAPI() function after importing connect_init.phph file. I tried with both no args and with username + password
  • In case I give an

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!