Javascript result as CUSTOM Data

In a previous post I found how to create an ini file on the app version from a certain app.

javascript:

var app = mobicontrol.app.getInstalledApp('com.sygic.fleet');
var appVersion = app.versionName
var data = '[DATA]\nVERSION=' + appVersion;
var file = new mobicontrol.io.File('/sdcard/sygicappVersion.ini');
file.writeText(data);

Which gives me an ini file with this data:

[DATA]
VERSION=22.3.9

Problem is I'm stuck on how to get this as a custom data field ?

Anyone who can help me on this one ?

2 years ago
SOTI MobiControl
ANSWERS