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