Asked by:
Retive all optionset values in CRM 2013 webservices

Question
-
Hi ALl,
Please share the code for retrivign all optionset values in crm 2013.
Wednesday, April 15, 2015 7:46 AM
All replies
-
Hi,
Do you want to retrieve it from C# or javascript?
Here is from C# Get OptionSet /Global OptionSet Text For Given Value From C#
Here is from Javascript CRM 2011/2013 Get Global OptionSet Values from Javascript
If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın My blog
- Edited by Polat Aydın[MCP] Wednesday, April 15, 2015 8:34 AM
Wednesday, April 15, 2015 8:33 AM -
Hi Polat,
i need to randomly retive all optionset value from CRM without Name and entiyname
Wednesday, April 15, 2015 9:35 AM -
Hi,
You can use the below request
RetrieveAllOptionSetsRequest request = new RetrieveAllOptionSetsRequest() { RetrieveAsIfPublished = true }; RetrieveAllOptionSetsResponse response = (RetrieveAllOptionSetsResponse)service.Execute(request);
If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın My blog
- Proposed as answer by Polat Aydın[MCP] Wednesday, April 15, 2015 10:22 AM
Wednesday, April 15, 2015 9:40 AM -
HI polat,
I need to get Global & non global Optionset with Text & Value
- Edited by rampprakash Wednesday, April 15, 2015 9:25 PM text changed
Wednesday, April 15, 2015 9:12 PM -
RetrieveAllOptionSetsRequest request gives you Global OptionSets Metadata.
For non-global optionset you have to use RetrieveEntityRequest because they are fields in Entity. There is no request for gives all non-global optionsets.
If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın My blog
- Edited by Polat Aydın[MCP] Thursday, April 16, 2015 7:07 AM
Thursday, April 16, 2015 7:06 AM