Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

SOAP not create record if OptionSetValue pass

$
0
0

Hi,

I am trying to create opportunity and we have lead type global option set is there using SOAP XML.

We are able to create record if we don't pass optionset in xml but if we pass optionset it throw error

"Message: A validation error occurred.  The value of 'new_leadtype' on record of type 'opportunity' is outside the valid range., ErrorCode: -2147204326"

above has option which doesn't have 0 (zero) value. 

Here is weird behavior, I have second attribute with global optionset type which has value "0" as option (not as text) if I create opportunity with second optionset. SOAP get parse and record created in CRM. but it is always set as a "0" value regardless whatever value you have passed.

But everything works fine from UI.


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>