Export devices added in Apple's iOS Provision portal

Irfan DANISH picture Irfan DANISH · Apr 17, 2013 · Viewed 9.2k times · Source

My apple developer is about to expire in 5 days. And after renewal I want to restore my devices count to 100 but meanwhile I want to export all currently added devices as backup for future use, these are 87 devices.

In new apple developer section I don't see any option to export all devices and I don't want to copy paste all 87 devices :(

Note: I want to export devices in the format required by the Apple for multiple device inserts.

Answer

aroth picture aroth · Apr 3, 2015

If you're looking for an option that doesn't require additional software, recordings, or fiddling with regular expressions, here's a JavaScript snippet you can run in Chrome's (or I'd assume, any other browser's) JavaScript console to get a properly-formatted device list:

var ids = ["Device ID"];
var names = ["Device Name"];
$("td[aria-describedby=grid-table_name]").each(function(){
    names.push($(this).html());
});
$("td[aria-describedby=grid-table_deviceNumber]").each(function(){
    ids.push($(this).html());
});

var output = "";
for (var index = 0; index < ids.length; index++) {
    //output += names[index] + "\t" + ids[index] + "\n";    //original
    output += ids[index] + "\t" + names[index] + "\n";      //post September 2016
}
console.log(output);

The complete export will be logged to the console, at which point you can simply copy/paste it into an empty text document, which can then be re-imported back to Apple at any time.

This works with Apple's current developer site layout, as of April 2015. Obviously it may break if they change stuff.