1

My coworker is trying to get the text from the description for a single line of text field using REST. We have so far been unable to find any methods that allows us to access it. We know how to get the description property for URLs/hyperlinks. This is about the description that can be provided for other fields (e.g. single line of text, date and time, etc). We only have REST as an option. It doesn't matter why it is our only option, it just is. So, to reiterate: How do we obtain a field's description using REST?

  • you can try it as /_api/web/lists/getbytitle('<List-Name>')/fields?$select=Title,InternalName,Description – Gautam Sheth Sep 7 '18 at 15:28
  • If you put that in an answer I can accept it. It worked, thank you. – WillRavon Sep 7 '18 at 15:47
1

To get description of all fields, you need to use the below endpoint:

/_api/web/lists/getbytitle('<List-Name>')/fields?$select=Title,InternalName,Description

If however, you want to get the data for particular field, you can use it as:

/_api/web/lists/getbytitle('<List-Name>')/fields?$select=Title,InternalName,Description
&$filter=Title eq 'YourField'

Reference - Fields REST API

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.