Topic by Dheeraj Eshwar Bangera
Content
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.