search cancel

REST for cr workflow tasks creation


Article ID: 224290


Updated On:


CA Service Management - Service Desk Manager CA Service Desk Manager


Having trouble with the REST implementation. I need to create a method to create a Request Workflow task (cr_wf) and I can't get it to work. However, I use the same input data in a SOAP method (createObject) and it works. I need to know if I'm doing something wrong. Here are my REST and SOAP code.


 <tenant REL_ATTR="U'690AFF0F85FD2F4C8FCE5CDE3BA7D9E5'"/>
 <task REL_ATTR="APP"/>
 <object_type REL_ATTR="cr"/>
 <cr REL_ATTR="cr:1121095345"/>


<soapenv:Envelope xmlns:soapenv="" xmlns:ser="">
            <!--1 or more repetitions:-->
            <!--1 or more repetitions:-->


Certain parameters can be omitted from the given REST call.


Release : 17.2

Component : SDM - Customizations


The XML payload that was used to test this successfully was:

 <task REL_ATTR="APP"/>
 <object_type REL_ATTR="cr"/>
 <cr REL_ATTR="cr:1121095345"/>

Ran a POST call via rest_access to obtain an access key.  The following screencap shows the execution work necessary to obtain the access key.

Next, run a POST call via cr_wf, adding the X-AccessKey header definition of the access key obtained from the aforementioned rest_access activity.  The following screenshot shows where I applied the XML payload, where I used a new sequence number as number 230 was already being used, and the successful result showing the entry being added

Additional Information

The above is based on the following tech articles to configure SOAPUI to test run REST calls

Using a tool to test CA Service Desk Manager REST Web Service functions

Using SOAPUI and REST Web Services to create a CI Object