Note that there are some explanatory texts on larger screens.

plurals
  1. POParsing XML - Get value from XML tree
    primarykey
    data
    text
    <p>I am using Nintex workflow. I added Web Service and configured to retrieve data from GetUserProfile.asmx. After adding the web service nintex let you see how would the soap look like. here is the soap.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;soap:Body&gt; &lt;GetUserPropertyByAccountName xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"&gt; &lt;accountName&gt;{WorkflowVariable:tmpApprover}&lt;/accountName&gt; &lt;propertyName&gt;PreferredName&lt;/propertyName&gt; &lt;/GetUserPropertyByAccountName&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre> <p>Nintex also let you see how the Results looks like in xml:</p> <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;soap:Body&gt; &lt;GetUserPropertyByAccountNameResponse xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"&gt; &lt;GetUserPropertyByAccountNameResult&gt; &lt;IsPrivacyChanged&gt;false&lt;/IsPrivacyChanged&gt; &lt;IsValueChanged&gt;false&lt;/IsValueChanged&gt; &lt;Name&gt;PreferredName&lt;/Name&gt; &lt;Privacy&gt;Public&lt;/Privacy&gt; &lt;Values&gt; &lt;ValueData&gt; &lt;Value xsi:type="xsd:string"&gt;Holmberg, Nancy&lt;/Value&gt; &lt;/ValueData&gt; &lt;/Values&gt; &lt;/GetUserPropertyByAccountNameResult&gt; &lt;/GetUserPropertyByAccountNameResponse&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre> <p>The I added a "Query XML" and tried some variation of xpath to the PreferredName from user Profile database and it's giving me "falsefalsePreferredNamePublicHolmberg, Nancy". </p> <p>Here are some of the code I tried</p> <pre><code>/soap:Envelope/soap:Body/defaultNS:GetUserPropertyByAccountNameResponse/defaultNS:GetUserPropertyByAccountNameResult/defaultNS:Values/defaultNS:ValueData/defaultNS:Value/@xsi:type </code></pre> <p>or </p> <pre><code>//defaultNS:xml/defaultNS:Values/defaultNS:ValueData/defaultNS:Value </code></pre> <p>or</p> <pre><code>//defaultNS:xml/defaultNS:Name </code></pre> <p>or</p> <pre><code>//@PreferredName </code></pre> <p>But they all give me falsefalsePreferredNamePublicHolmberg, Nancy. I should give me Holmberg, Nancy.</p> <p>Please suggest.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload