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

CPM access object properties with loop

Accepted answer
14
Views
4
Comments
edited Feb 5, 2018 10:31PM in Integrations and APIs 4 comments

Content

I'm writing a CPM to do audit logging. I would like to be able to  write one script which can loop through the object, check what properties have changed and create a log accordingly. However I would like this to work for multiple object types (incidents, cases, contacts, etc.) 

I'm aware that the PHP api does lazy loading which has already tripped me up before. However when I iterate through the properties all the values come out as Null. If I assign them to local variables by name it works, but i dont want to have to manually hand code a script for every single object I want to add this too. 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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