SharePoint 2016 Logo

In this post you I will write how to get available options from the SharePoint field 'Choice'. I often use it, and sometimes I need to use it in customizations or reports.

2 Steps to get options from SharePoint choice field

1. Request to listdata.svc

https://teenant/sites/Euro/anzeigen/_vti_bin/listdata.svc

The list is called 'Anzeigen' and the field is 'Kategorie'. Here it’s written as concatenation of 'Anzeigen' and 'Kategorie', that is equivalent to 'AnzeigenKategorie'

2. Get properties

Add the field name to the URL above. This way

https://teenant/sites/Euro/anzeigen/_vti_bin/listdata.svc/AnzeigenKategorie

Then you need to parse XML or change header to get the answer in JSON.