2

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?

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

1 Answer 1

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 and acknowledge you have read our privacy policy.

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