The methods orderBy and orderByDesc from glideRecord are not working for Service Portal.

Steps to Reproduce


1. In an early Jakarta instance create a catalog client script associated with a record producer.
2. In the script call the method orderBy for a glide record object.
3. Execute the record producer with 'try it', verify there is no issue.
4. Execute in the service portal and observe the error: "orderBy is not a function"


This issue is fixed in all currently supported versions. Please review the Fixed In section to determine the latest available patch your instance can be upgraded to.

The only available workaround before the upgrade was to use addOrderBy(field) instead of orderBy(field). There was no workaround for orderByDesc(field).

Related Problem: PRB701584

Seen In

Helsinki Patch 2

Fixed In

Jakarta Patch 8

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-24 11:21:31