JS to process a synced file based on the custom attribute

Solved

New to JS but I want to sync a certain time zone xml file based on the location of a device, where i will get the location from the custom attribute. is this possible?

I found this on SOTI portal but not sure how to use it with processing the time zone file that I've synced, instead of just displaying it in the logs. SEFL_LOC is my custom attribute:

var myCustomValue = mobicontrol.agent.getCustomAttribute("SEFL_LOC");

if (myCustomValue != null) {

    mobicontrol.log.info("Custom attribute for key SEFL_LOC: " + myCustomValue);

} else {

    mobicontrol.log.info("Custom attribute for key SEFL_LOC is not found");

}

sdcard/Timezones is the path 

a year ago
Android Scripting
ANSWERS