How to retrieve formatted values of lookups in an entity?
问题 We are facing challenge in getting formatted values of lookups available in an entity using web api. Scenario : we have an entity with 8 lookups. When I'm querying those with Web API, getting GUIDs of those lookups, but not the names of those lookups. 回答1: MSDN says adding header in web api request Prefer: odata.include-annotations="*" will result you the formatted value - Name, logical name along with Id like below: (without making another call) req.setRequestHeader("Prefer", "odata.include