How can I get opionset value on RetrieveMultiple

304 views Asked by At

I'm doing RetrieveMultiple call with following query:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="lt_myentity">
    <attribute name="lt_id" />
    <attribute name="lt_changetype" />
  </entity>
</fetch>

It's working fine but lt_changetype is defined as optionset so in result I'm getting IDs like 206420010. How can I get values instead?

I know about RetrieveAttributeRequest but maybe it's possible to do this without second call and matching.

1

There are 1 answers

0
Srinivas Hsk On BEST ANSWER

IF You Want to Get the OptionSetValue You Can use FormattedValues Property After Getting the Data from FetchXML. Kindly Check this FormattedValues