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

How to add/change AssignedSLAInstance from ConnectPHP?

Received Response
55
Views
6
Comments
edited Jun 8, 2022 12:01PM in General Technical Discussions 6 comments

Content

Hi 

I spent several days trying to figureout how to add/changed AssignedSLAInstance from ConnectPHP 1.2 but in vail. There is no error message, however, the SLA is not changed at all.

I tried both: new SLAInstance and new AssignedSLAInstance. With SLAInstance, I tried to set the ActiveDate as well. I tried to set the NameOfSLA with the sla_id, sla_set or with the Name.

 


Very much appreciate some guidelines or working codes on this.

Thank you and with best regards


 

 

Version

January 2015

Code Snippet

             $sla =  new RNCPHP\SLAInstance(); //Or AssignedSLAInstance()
$sla->NameOfSLA = new RNCPHP\NamedIDOptList(); //Or NamedIDLabel()
$sla->NameOfSLA->ID = 3; //Or ->Name='Premium'

 $incident->AssignedSLAInstance =$sla; 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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