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

Delete Contact SLAs using Connect PHP

Received Response
edited Jul 11, 2018 4:23PM in Integrations and APIs 2 comments


I am using Connect PHP to Update SLAs on a Contact record and the sequence of steps are -

1. Delete the existing SLAs on the Contact record (function - deleteSLAInstance)
2. Associate the new set of SLAs to the Contact record (function - saveSLAInstance)

The functions used in the above two steps are provided for reference.

The SLA Delete and new SLA association works as expected but I see that the Array Index of SLAInstances keeps growing and is not re-set on deleting the SLAs (using offsetUnset). See attached screenshot (Contact_SLAInstances.JPG).

Is this the expected behavior? Can the Delete function be modified so that the SLAInstances is re-set to the initial state i.e. with no Array elements.

Howdy, Stranger!

Log In

To view full details, sign in.


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