When creating Incident via Web Services, using a category that has Workflow (WF) attached, the Incident does not present the WF
Release : 17.3 or later versions
Service Desk Web Services
Faulty web services code and SDM category configuration. Please see resolution for an example of web services code that should work.
Within Service Desk please make these changes
Within SoapUI, please make these changes
Copy the SID from the loginReturn field
<loginReturn xmlns="">510741424</loginReturn>
Within the Navigator Bar on the Left side click createRequest
Click Request1
Sample Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<soapenv:Header/>
<soapenv:Body>
<ser:createRequest>
<!--Enter the SID you copied from Login-->
<sid><510741424</sid>
<!--creatorHandle is retrieved from SQL ca_contact table in the ID column-->
<creatorHandle>cnt:3D5F8E143C02D843AAD44654D556151C</creatorHandle>
<attrVals>
<!--1 or more repetitions:-->
<string>description</string>
<string>Test Description</string>
<!--retrieve the category from SQL prob_ctg table in the ID column-->
<string>category</string>
<string>pcat:400002</string>
<!--log_agent matches the creatorHandle-->
<string>log_agent</string>
<string>cnt:3D5F8E143C02D843AAD44654D556151C</string>
<string>summary</string>
<string>Test Summary Here</string>
<string>status</string>
<string>OP</string>
<!--customer matches the creatorHandle for testing purposes-->
<string>customer</string>
<string>cnt:3D5F8E143C02D843AAD44654D556151C</string>
<!--change type to I for incident-->
<string>type</string>
<string>I</string>
<string>priority</string>
<string>0</string>
</attrVals>
<propertyValues>
<!--1 or more repetitions:-->
<string></string>
</propertyValues>
<template></template>
<attributes>
<!--1 or more repetitions:-->
<string>ref_num</string>
</attributes>
<newRequestHandle></newRequestHandle>
<newRequestNumber></newRequestNumber>
</ser:createRequest>
</soapenv:Body>
</soapenv:Envelope>
Click the Play button to run
If its's successful you will see
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<createRequestResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<createRequestReturn xmlns=""><![CDATA[<?xml version="1.0" encoding="UTF-8"?><UDSObject>
<Handle>cr:400228</Handle>
<Attributes>
<Attribute DataType="2002">
<AttrName>ref_num</AttrName>
<AttrValue>85</AttrValue>
</Attribute>
</Attributes>
</UDSObject>]]></createRequestReturn>
<newRequestHandle xmlns="">cr:400228</newRequestHandle>
<newRequestNumber xmlns="">85</newRequestNumber>
</createRequestResponse>
</soapenv:Body>
</soapenv:Envelope>
Go back to SDM
Click Service Desk
Click Incidents
Locate your ticket and open
Verify that the Workflow is attached for Incident