1

I am attempting to search a specific custom content type using SharePoint Online's REST Search API. Here is the URL Request.

_api/search/query?sourceid='d0aa2c2e%2D7709%2D46f1%2D835a%2D244f483e4b0e'

The problem is that the content type has custom fields which I need returned. The dataset returned does not show those custom fields. I want to know if there is a way I can craft the URL to be sure to include my custom fields.

Thanks

2 Answers 2

1

You should use selectproperties as paul suggested

After adding it your query should look like below

_api/search/query?sourceid='d0aa2c2e%2D7709%2D46f1%2D835a%2D244f483e4b0e'&selectproperties='columnName1,columnName2'
2
  • 1
    Actually, it's &selectproperties='columnName,columnName2' AFAIK.
    – Serhiy
    Commented Aug 15, 2016 at 9:42
  • oops! corrected the answer now, thanks for prompting Commented Aug 16, 2016 at 5:48
2

Use the 'selectproperties' query string parameter

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.