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

Returning the Category Parents ID's in PHP API

Received Response
12
Views
2
Comments
edited May 9, 2019 6:50AM in Integrations and APIs 2 comments

Summary

How to return the Parents ID of Category in PHP API

Content

Hi All

Ok so we are returning the Category ID's in PHP API By using the following:

$catID = $incident->Category->ID;

We are now trying to return the Category Parents ID as well but cant seem to figure it out, we have tried the following but get "cant return property of an object".

$parCatID = £incident->Category->Parents->ID;

Does anyone know the correct syntax ?

Thanks!

Nigel

Version

18C

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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