Skip to main content

Sort on REST API by `createdTime` without adding new Column

  • March 31, 2022
  • 2 replies
  • 50 views

Is it possible to request results from the REST be sorted by the createdTime (which is returned on the payload) without needing to add a new column to the table? i.e. right now if I pass createdTime to sort, I get back an error: [Error: {\'type\': \'UNKNOWN_FIELD_NAME\', \'message\': \'Unknown field name: "createdTime"\'}]

2 replies

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • March 31, 2022

Not currently. The sort parameters for the REST API only expect fields, so you need a field that contains the created time. It is a handy field to have around anyway.


Forum|alt.badge.img+1
  • New Participant
  • September 4, 2024

Is there any way to create the field through the API? Or the only way is manually user enter the field type on the base?