SpRestLib icon indicating copy to clipboard operation
SpRestLib copied to clipboard

Column Modified by cannot be loaded (400) The query to field 'Editor' is not valid.

Open jakprovaznik1 opened this issue 4 years ago • 0 comments

I am using this syntax:

return sprLib .list({ name: this.config.answers, baseUrl: this.state.queryBaseUrl }) .items({ listCols: { dataObjectID: { dataName: "Id" }, status: { dataName: "STATUS" }, notes: { dataName: "NOTES" }, lastModifiedAt: { dataName: "Modified" }, modifiedBy: { dataName: "Editor"} }, queryFilter: "Title eq '" + queryString.parse(this.props.location.search).bid + "'" })

This is in the error message: The $select query string must specify the target fields and the $expand query string must contains Editor

How can I use expand parameter in this case?

jakprovaznik1 avatar Jul 29 '20 19:07 jakprovaznik1