1

Newbie here. Basic REST question for you. I have a list with over a hundred columns. I would like to use REST to retrieve the multi-choice options for two columns but I can't figure out how to do it. I've tried everything i can think of. The first URL below works but the second does not. Any help is greatly appreciated!

_spPageContextInfo.siteServerRelativeUrl+"/_api/web/lists/GetByTitle('TESTlist')/fields/GetByTitle('ChoiceFieldOne')";

_spPageContextInfo.siteServerRelativeUrl+"/_api/web/lists/GetByTitle('TESTlist')/fields/GetByTitle('ChoiceFieldOne','ChoiceFieldTwo')";
2

You can use a filter to get the fields you want from the fields collection for the list

_spPageContextInfo.siteServerRelativeUrl + "/_api/web/lists/GetByTitle('TESTlist')/fields?$filter=(Title eq 'ChoiceFieldOne') or (Title eq 'ChoiceFieldTwo')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.