How to use pub.document:sortDocuments sortCriteria

I am trying to sort some documents by multiple fields, which the built in services guide says is possible, however the sortCriteria parameter is a document list with 4 strings under it, so you can only map one key at a time. How do I map it like the built in services guide mentioned with multiple keys?


Hi Garry,

please set the variables on the list directly, not on the fields.

The Setter-Dialog will then allow you to add multiple records with the 4 fields for each source key needed.

See Service Development Help for further informations.

Regards,
Holger

2 Likes

Hi Holger,

Thanks for pointing me to the right document, I have figured it out.

Regards
Garry