I am trying to retrieve choice values from a lookup field in SharePoint 2013 using REST API.
PFB the code:
$.ajax({ url: _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists/GetByTitle('Test')/fields?$filter=EntityPropertyName eq 'Category'", type: "GET", headers: { "accept": "application/json;odata=verbose", }, success: function (data) { $scope.choices=data.d.results[0].Choices.results; alert(); }, error: function (error) { alert(JSON.stringify(error)); } }); This works fine for a normal choice field but doesnt work with Lookup field. Any solution?
Thanks, Dheeraj