mercredi 7 janvier 2015

How to get SPFieldChoice values using rest api SharePoint 2013?



I have a choice field in my list. I can get it values using server object model by following way



List<string> fieldList;

SPList spList = spWeb.Lists[listName];

SPFieldChoice field = (SPFieldChoice)spList.Fields[fieldName];

fieldList = new List<string>();

foreach (string str in field.Choices){

fieldList.Add(str);
}


Now I need it badly using rest api. Is it possible using rest api?








0 commentaires:

Enregistrer un commentaire