tag:blogger.com,1999:blog-7997141762254753587.post1315495836658836347..comments2024-03-04T22:57:55.899+05:30Comments on Guru Prasad's Blog: Microsoft Dynamics CRM: Retrieve OptionSet Text in CRM 2011 using C#Guru Prasadhttp://www.blogger.com/profile/16644140638642563724noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-7997141762254753587.post-74628312882784287182014-11-14T12:27:53.248+05:302014-11-14T12:27:53.248+05:30I am retrieving audit value to astring using the c...I am retrieving audit value to astring using the code-> String Value = attributeDetail.OldValue[attribute.Key].ToString();<br />If the value is not string I am getting "Microsoft.Xrm.Sdk.OptionSetValue". I want to get the optionset value in string variable as mentioned above.Anonymoushttps://www.blogger.com/profile/11167173382206471017noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-29407750823662300262014-07-25T20:36:25.602+05:302014-07-25T20:36:25.602+05:301.How can we get input of Option set text value in...1.How can we get input of Option set text value in custom workflow?<br />2.How can we set output of Option set text value in custom workflow?<br /><br />can anyone plz help me to resolve this problem..M K Habeebuddinhttps://www.blogger.com/profile/15370338258297082276noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-51840416060969312892014-07-24T02:53:44.603+05:302014-07-24T02:53:44.603+05:30Hi Guru
Would you have any insight as to how to re...Hi Guru<br />Would you have any insight as to how to retrieve the optionset text with an OData query?<br />I need to create reportes with PowerQuery, but whenever an Entity has picklists, the OData query just only the value associated.<br />Any help will be greatly appreciated.<br />Regards, ArielAnonymoushttps://www.blogger.com/profile/10977459055085423833noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-30208149862657525162013-06-17T15:34:54.353+05:302013-06-17T15:34:54.353+05:30Great post... work like charmGreat post... work like charmsathis2251987https://www.blogger.com/profile/10043105006431006825noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-84810264976153786342013-05-20T13:13:23.478+05:302013-05-20T13:13:23.478+05:30use the following code to retrieve two option set ...use the following code to retrieve two option set text<br /><br />// Get Normal two option set Text<br />string twoOptionLable = entity.FormattedValues["new_twoOptionSet"];<br /><br />//to update two option field<br />entity.Attributes.Add("new_bitfield", true);<br /><br />Hope it helps!Guru Prasadhttps://www.blogger.com/profile/16644140638642563724noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-5251741767808281872013-05-15T03:37:11.075+05:302013-05-15T03:37:11.075+05:30How to retrieve and update Two Option Option set?How to retrieve and update Two Option Option set?Nishanthttps://www.blogger.com/profile/14465091232662506277noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-7692231995246623812013-02-23T16:31:27.491+05:302013-02-23T16:31:27.491+05:30Hi Ravideep,
you can use the following code to g...Hi Ravideep,<br /><br /> you can use the following code to get the optionset value inside the plugin<br />var optvalue = entity.Attributes["accountratingcode"];<br /><br />I did not get what exactly your requirement. provide me more information where you wants to get optionset value?(plugin,javascript etc.) so that i can help you.<br /><br />Thanks,<br /> GuruGuru Prasadhttps://www.blogger.com/profile/16644140638642563724noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-27942837160850694862013-02-13T15:52:01.757+05:302013-02-13T15:52:01.757+05:30Hi Guru,
Account has accountratingcode optionset....Hi Guru,<br /><br />Account has accountratingcode optionset. I want to retrieve value of that optionset when accountratingcode is on unassigned.<br />Anonymoushttps://www.blogger.com/profile/13256684457335244639noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-90867510232347549332012-12-03T17:51:58.350+05:302012-12-03T17:51:58.350+05:30var optvalue = PostImage.Attributes["new_opti...var optvalue = PostImage.Attributes["new_optionset"];Guru Prasadhttps://www.blogger.com/profile/16644140638642563724noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-28799763161321738622012-11-29T21:15:03.902+05:302012-11-29T21:15:03.902+05:30And how can I retrieve optionset's selected va...And how can I retrieve optionset's selected value for record into variable from its Post Image in Plugin created on Update event ?Upen4CRMhttps://www.blogger.com/profile/12478150377918711069noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-14526015111083186532012-08-09T16:28:24.133+05:302012-08-09T16:28:24.133+05:30Hi Pradeep,
use the following code to get two...Hi Pradeep,<br /><br /> use the following code to get two options field Text<br /><br />// Get Normal two option set Text<br />string twoOptionLable = entity.FormattedValues["new_twoOptionSet"];<br /><br />Let me know if any issues..Guru Prasadhttps://www.blogger.com/profile/16644140638642563724noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-51956517239463901252012-08-07T18:29:46.478+05:302012-08-07T18:29:46.478+05:30Hi Guru,
Can you please let us know how to retri...Hi Guru, <br /><br />Can you please let us know how to retrieve the Text of TwoOptions?Anonymoushttps://www.blogger.com/profile/01222589790179685078noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-61583316468340989712012-07-26T19:52:10.218+05:302012-07-26T19:52:10.218+05:30Gary! you can use Metadata service request to retr...Gary! you can use Metadata service request to retrieve any attribute data. we can get Label of Two option filed Label as well, i did not tried it.Guru Prasadhttps://www.blogger.com/profile/16644140638642563724noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-76920695947898915082012-07-26T00:21:13.118+05:302012-07-26T00:21:13.118+05:30This is great! How would you get the lable for a ...This is great! How would you get the lable for a Two Options field type? IOW, if the value is 0, how do you know if the label is False, No, Empty, etc?Garyhttps://www.blogger.com/profile/02063062477854414761noreply@blogger.comtag:blogger.com,1999:blog-7997141762254753587.post-8678371426601250772012-05-12T17:13:39.131+05:302012-05-12T17:13:39.131+05:30Thank you Guru! Your code helped me with this Opti...Thank you Guru! Your code helped me with this OptionSet nightmare!Anonymoushttps://www.blogger.com/profile/03225186683208658482noreply@blogger.com