Jump to content

Support * to retrieve all fields in query


 Share

Recommended Posts

The legacy readByQuery in the XML API supported specifying "*" in the field list, which was perfect for:

  • Local troubleshooting in Postman, without having to look up the object model first to see what fields are available and tedious copy-pasting
  • User-initiated query's where the user "wants everything" in a tabular form without having to specify an explicit "SELECT".

Unfortunately, query in XML / REST based API does not support this.

Right now, to enable this scenario, we need to warm up local object definition caches and inspect the model the user wants, so as to retrieve the available field list.

It would be so great (save an extra API call and improve report responsiveness), if we could pass a "*" to the query just as we could to legacy readByQuery in the XML API.

We discussed this idea briefly with Louis at Transform and he thought it was an great suggestion, so I am filing it here.

Edited by Pavel Kabir
Clarification
Link to comment
Share on other sites

That's a pity... We nevertheless provide our users with such a capability, however this happens at the expense of an extra API call to obtain the object definition.

For now it feels like it's a common debugging and "drafting" scenario (retrieve everything, see what's inside, then narrow down the data to the columns that you need), but with the workaround above it may actually have worse performance than if "*" was allowed in the first place...

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...