Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a few issues with the your request. Firstly the request is 'RetrieveOptionSetRequest' not 'retrieveOptionSetRequest' (it will tell you this doesn't exist!)</p> <p>Secondly there is a missing '\' on your request line</p> <pre><code>&lt;request i:type=\"a:retrieveOptionSetRequest\" xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts\"&gt; </code></pre> <p>Should be</p> <pre><code>&lt;request i:type=\"a:RetrieveOptionSetRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"&gt; </code></pre> <p>If you fix those two issues then you will find you still won't get the required result. As can be seen at the website mentioned by Pedro Azevedo you need to include the MetadataId and RetrieveAsIfPublished parameters or you won't get a result (the response will make you aware of this). You need to include RequestName in your request.</p> <p>Your final request should look like this</p> <pre><code>&lt;Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"&gt; &lt;request i:type=\"a:RetrieveOptionSetRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"&gt; &lt;a:Parameters xmlns:b=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\"&gt; &lt;a:KeyValuePairOfstringanyType&gt; &lt;b:key&gt;MetadataId&lt;/b:key&gt; &lt;b:value i:type=\"c:guid\" xmlns:c=\"http://schemas.microsoft.com/2003/10/Serialization/\"&gt;00000000-0000-0000-0000-000000000000&lt;/b:value&gt; &lt;/a:KeyValuePairOfstringanyType&gt; &lt;a:KeyValuePairOfstringanyType&gt; &lt;b:key&gt;Name&lt;/b:key&gt; &lt;b:value i:type=\"c:string\" xmlns:c=\"http://www.w3.org/2001/XMLSchema\"&gt;new_industry&lt;/b:value&gt; &lt;/a:KeyValuePairOfstringanyType&gt; &lt;a:KeyValuePairOfstringanyType&gt; &lt;b:key&gt;RetrieveAsIfPublished&lt;/b:key&gt; &lt;b:value i:type=\"c:boolean\" xmlns:c=\"http://www.w3.org/2001/XMLSchema\"&gt;false&lt;/b:value&gt; &lt;/a:KeyValuePairOfstringanyType&gt; &lt;/a:Parameters&gt; &lt;a:RequestId i:nil=\"true\" /&gt; &lt;a:RequestName&gt;RetrieveOptionSet&lt;/a:RequestName&gt; &lt;/request&gt; &lt;/Execute&gt; </code></pre>
    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.
    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