Sharepoint Online to get /items managed propries throwing exception
10:02 04 Mar 2026

I am fasing an issue while fetching data fro Sharepoint Online, the has column name query , "Context", it is a lookup column, managed property with alias name is "Context", so I am refering alias managed proeprty name "Context " in the query .the formated url to fetch items from SPO is as below .

"https://.sharepoint.com/sites/test-marketplace/_api/web/lists/GetByTitle('ListPages')/items?$select=ContentType/Name,ContentType/Id,UniqueId,Title,arTitle,_UIVersionString,Created,Modified,Context,LongDescription,arLongDescription,Personas,Sensitivity&$expand=ContentType,Context&$filter=((Id eq 7))",exception as follows "{\"error\":{\"code\":\"-1, Microsoft.SharePoint.SPException\",\"message\":{\"lang\":\"en-US\",\"value\":\"The query to field 'Context' is not valid. The $select query string must specify the target fields and the $expand query string must contains Context.\"}}}".

what I am doing wrong here , any support whould be appriciate .

Thanks

Hari

search sharepoint