Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: How to use CrmMetadataDataSource on form & write to CRM

$
0
0
Figured this out and posting my solution in case others encounter it. For some reason, I couldn't use the SelectedItem property with my original dropdown list. I created a new dropdown list and used my crm optionset as the datasource and that worked. This was the code I have behind to map the value on the form to the option set in CRM. contact.Attributes.Add("new_optionset", new OptionSetValue(int.Parse(DropDownList1.SelectedItem.Value)));

Viewing all articles
Browse latest Browse all 154803

Latest Images

Trending Articles



Latest Images

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