Nemomax Absent Member.
Absent Member.
248 views

Retrieve last created Incident Task

Hi Experts,

I need to retrieve last created incident task(s) comparing with last incident was fetched. As i need to run a SOAP web service which aytomatcically  get any created incident tasks and post it into my local Database. Is there a parameter which i can add (instead of TaskID) in the following request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:RetrieveIncidentTaskRequest  ignoreEmptyElements="true" >
         <ns:model>
            <ns:keys>
               <ns:TaskID type="String">IM3523846-001</ns:TaskID>
            </ns:keys>
            <ns:instance />
         </ns:model>
      </ns:RetrieveIncidentTaskRequest>
   </soapenv:Body>
</soapenv:Envelope>

Appreciate your support. 

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Retrieve last created Incident Task

Hi,

Did you try using the field parent.incident so, you will get all the incident tasks related to one particular IM? Then, you could get the first one in the list or the last one depending on the sort returned.

Regards.

If you feel this was helpful please click the KUDOS! thumb below!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.