Monday, 29 January 2018

How to Set a Option Set value in Dynamic CRM using plugin.

How to Set a Option Set value in Dynamic CRM using plugin.

Description:

In this example we explain that how to set the value for the Option Set in Dynamic CRM using plugin or custom Workflow. Or how to update the Option Set Value using custom workflow in dynamic CRM.or how to set Option Set Value from C# to Dynamic CRM.or get Option Set value and set Option Set Value in Dynamic CRM using Plugin.

you can't use formatted values to assign it you need to use the standard attribute and set the correspondent value


  entity["new_contacttype"] = new OptionSetValue (10000000);

where 10000000 is the value for the selected option
 Code:
  entity["new_contacttype"] = new OptionSetValue (100000);
                     service. Update(entity);




This entry was posted in :

0 comments:

Post a Comment