Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Dev Aditya
    SOAP XML request to create SLA instance and assign it to...Answered
    Topic posted August 29, 2019 by Dev AdityaGold Trophy: 10,000+ Points, tagged SOAP 
    25 Views, 4 Comments
    Title:
    SOAP XML request to create SLA instance and assign it to new contact
    Summary:
    SOAP XML request to create SLA instance and assign it to new contact
    Content:

    Hi Experts,

    I couldn't find any documentation to create contact with multiple SLA instances assigned to it, using SOAP XML request. If anyone has worked on it, please help me with syntax.

     

    Many Thanks,

    Dev

    Best Comment

    Robert Surujbhan

    Hi Dev, sure.  Attached is a working soap/xml request payload that creates a Contact and assigns two (2) SLA instances to the record.  In my example, the SLA IDs are 2 and 3, and I am giving both a state ID of 2 ("Active").  One is set with the Expire Date in one month, the other in two months, with the Active Dates on both set to Aug 30.

    This example was created using v1.3 of the CCOM API definition.  Please adjust if you are using the 1.4 service bindings!  I can provide a 1.4 envelope example if you'd like.

    As you'll see, the stacked <SLAInstanceList> elements go into the <SLAInstances> parent element which itself is a child of <ServiceSettings>.  Be sure to add the action="add" attribute to the <SLAInstanceList> items.

    Does this help?

    Comment

     

    • Robert Surujbhan

      Hi Dev, are you looking for the raw soap/xml or do you need this example in a programming language like C# which will be calling the Connect Web Services for SOAP API using wsdl-generated object classes?

    • Dev Aditya

      Hi Robert,

      Thanks for your resposne. I am looking for raw soap/xml body that includes SLA instance list. I tried from my end, I am continously getting 'Invalid ID' error. ID is correct, so, I guess, there is some issue with the body.

      Thanks,

      Dev

    • Robert Surujbhan

      Hi Dev, sure.  Attached is a working soap/xml request payload that creates a Contact and assigns two (2) SLA instances to the record.  In my example, the SLA IDs are 2 and 3, and I am giving both a state ID of 2 ("Active").  One is set with the Expire Date in one month, the other in two months, with the Active Dates on both set to Aug 30.

      This example was created using v1.3 of the CCOM API definition.  Please adjust if you are using the 1.4 service bindings!  I can provide a 1.4 envelope example if you'd like.

      As you'll see, the stacked <SLAInstanceList> elements go into the <SLAInstances> parent element which itself is a child of <ServiceSettings>.  Be sure to add the action="add" attribute to the <SLAInstanceList> items.

      Does this help?

    • Dev Aditya

      Hi Robert,

      Thanks for the quick response. This XML worked for me.

       

      Thanks again!!!