includeFormattedValuesAndLookupProperties returns array even for .retrieve call
Closed this issue · 0 comments
janis-veinbergs commented
Describe the bug
Consider code:
const record = await XrmQuery.retrieve(x => x.someentity, entityId)
.select(x => [x.name])
.promise();
record is of someEntity object type.
const record = await XrmQuery.retrieve(x => x.someentity, entityId)
.select(x => [x.name])
.includeFormattedValuesAndLookupProperties()
.promise();
record is of someEntity[] type
Expected behavior
Calling includeFormattedValuesAndLookupProperties should still return a single object for .retrieve call.
Environment
- XrmDefinitelyTyped v.6.3.0