Highlighted
Contributor.
Contributor.
299 views

HPSM SOAP join and wildcard

Jump to solution

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='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: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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/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.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: HPSM SOAP join and wildcard

Jump to solution

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!

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution. If you are satisfied with anyone’s response please remember to give them a LIKE by clicking on the Thumb and show your appreciation.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: HPSM SOAP join and wildcard

Jump to solution

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!

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution. If you are satisfied with anyone’s response please remember to give them a LIKE by clicking on the Thumb and show your appreciation.

View solution in original post

0 Likes
Highlighted
Contributor.
Contributor.

Re: HPSM SOAP join and wildcard

Jump to solution

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.

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.