Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. EJB Business Entity Service Calls
  4. REST Business Entity Service Calls
  5. REST APIs for Data Director
  6. SOAP Business Entity Service Calls
  7. Cross-reference Records and BVT Calculations Services
  8. Supporting Corporate Linkage Service
  9. External Calls to Cleanse, Analyze, and Transform Data
  10. Appendix A: Using REST APIs to Add Records
  11. Appendix B: Using REST APIs to Upload Files
  12. Appendix C: Using REST APIs to Manage Reports

POST Request to Specify Sort Order of Child Elements

POST Request to Specify Sort Order of Child Elements

Use a POST request to order the result set by multiple fields. Include the parameters or fields in the POST body.
The following sample request shows how to use the POST request for a read operation and sort the data by multiple fields:
http://localhost:8080/cmx/cs/localhost-orcl-DS_UI1/ReadPerson.json { parameters: { coFilter: { object: { name:"Person", key: { rowid: 1242 }, order: "lastName", object:[ {name:"Names", order:"-name"}, {name:"Phone", order:"phoneNum, -phoneCountryCd", object:[{name:"PhonePermissions", order:"-column1"}] } ]} } } }
At each level of business entity, for each type of children only one type of sort order is allowed.

0 COMMENTS

We’d like to hear from you!