Hi Team,
am new to the PAM and I have created a PAM Process where am calling doquery method and am getting results of listhandle and listlength in operation results like below in xml format.
<doQueryResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<doQueryReturn xmlns="">
<listHandle>1937245072</listHandle>
<listLength>1</listLength>
</doQueryReturn>
</doQueryResponse>
but can you tell me how to pass these values to the PAM variables ? (post execution code).
Thank you,
Regards,
santoshi.P
Hi Santo,
When you use the soap operator, there's a call result section in the property tab. You can extract the first level item automatically with the corresponding checkbox or you can perform additionnal extraction with the list at the bottom of the call result section. You will need to specify XPath expressions and variable to store the value.
Here's a link about xpath : http://www.w3schools.com/xsl/xpath_intro.asp
So based on the doQuery return, you may consider to add 2 additionnal extractions : //listHandle -> Process.listHandle, //listLength -> Process.listLength.
Another way : you can return the deQueryReturn node : //doQueryReturn, and convert it to a valuemap, and get your values in it with javascript. Here's how i do it with createRequest method
So if you use a doSelect that return several rows, you may consider adding a "for loop" to the previous code snippet.
Nothing better than an example :
(Code snippet from the post-execution code of a soap operator executing a doSelect, querying SDM to obtain email address for each member of a specified group.