HPSM SOAP join and wildcard

Hello Jose,

thanks for your reply.

I try to built an Incident check for our HPSM. My problem is to query for an incident wich is not closed, starting with a special String and not older then eg 14 days. I already struggle with the "starting with query (Netapp | Node xxxxxxxx)". I tried

RetrieveIncidentKeysListRequest:
<soapenv:Envelope xmlns:soapenv='schemas.xmlsoap.org/.../' xmlns:ns='http://schemas.hp.com/SM/7' xmlns:com='schemas.hp.com/.../Common' xmlns:xm='www.w3.org/.../xmlmime'>
    <soapenv:Header/>
        <soapenv:Body>
            <ns:RetrieveIncidentKeysListRequest ignoreEmptyElements='true'>
                <ns:model>
                    <ns:keys> </ns:keys>
                    <ns:instance>
                        <Title>&quot;NetApp | Node: *&quot;</Title>
                    </ns:instance>
                </ns:model>
            </ns:RetrieveIncidentKeysListRequest>
        </soapenv:Body>
</soapenv:Envelope>

as well as RetrieveIncidentListRequest:

 

<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:ns="">schemas.hp.com/.../7">
   <soapenv:Header/>
   <soapenv:Body>
      <RetrieveIncidentListRequest>
        <keys query='Description="NetApp | Node: *"&amp;Status=&quot;Work in Progress&quot;'  updatecounter="?">
         </keys>
      </RetrieveIncidentListRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

 

is it also possible to query for status NOT closed to get all the other Incidents with that parameters?

Thx.

  • Verified Answer

    Hello Thomas,
    Thanks for your question!

    SOAP requests depends directly on the inputs and forms from the Module you want to push/pull information.

    Hence, in order to make any instruction, you will require first to understand how the form works, which fields are mandatory and also its scope on what can and cannot be done.

    Since I have no details of your SM version, it is hard to suggest you else, but I am going to share the following documentation from Service Manager Knowledgebase, hoping it can help you:

    SM 9.41 Web Services Guide (Codeless Mode)

    BR!

  • Hello,

    i wanted to do a query for Incidents with a specific title (starts with "NetApp | Node), Status NOT closed and created within the last 14 days.

    My SM version is 9.41.7001-P7.

    I tried it with RetrieveIncidentKeysListRequest and RetrieveIncidentListRequest function, to get list of IDs or list of Incident objects. But in both cases i had a problem with a query with multiple conditions.

    Can you maybe give me an example how to do a query with multiplie conditions?

    <keys query='xxxxxxxxxxx' updatecounter="?">
             </keys>

     

    Thank you very much.