Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
You use /private/devices/search to get the device list from the MDM API, right?

I want the recently created device to be at the top (i.e. the device with the larger device id is at the top). How can I do that?

The parameters we are sending to the API are:

           {

             value: value,

             groupId: -1;

             configurationId: -1;

             pageSize: 10;

             pageNum: this.pagination.pageNum,

             sortBy: null,

             sortDir: 'DESC',

           },

This is it. But it seems to be adjusting with sortBy here, but I don't know what to put in sortBy.

I would appreciate it if you could let me know.

god bless you
by (160 points)

1 Answer

0 votes
You can check how it works in the Chrome developer console. See details here: https://qa.h-mdm.com/16735/

Available values for SortBy are: STATUS, LAST_UPDATE, NUMBER, IMEI, PHONE, MODEL, PERMISSIONS, INSTALLATIONS, FILES, CONFIGURATION, DESCRIPTION, GROUP, LAUNCHER_VERSION, BATTERY_LEVEL, DEFAULT_LAUNCHER, MDM_MODE, KIOSK_MODE, ANDROID_VERSION, ENROLLMENT_DATE, SERIAL, PUBLICIP, CUSTOM1, CUSTOM2, CUSTOM3
by (11.3k points)
...