Custom SOTI Macros

BR
Ben Ragland
Zebra (OVS) - Manhattan Associates

Hi, I am curious if there is a way to create custom macros in addition to what's already available, such as %MAC% or %DEVICENAME%.

I see in v13 scripting documentation a mention about setting variables but there is not much context provided behind where to use this syntax or what platforms are supported.

My goal is to create a custom macro that is pulling custom data being collected from an ini file on the device and then to utilize that macro in my Lockdown code. I may be able to accomplish with the REST api's but haven't gone down that path quite yet.

7 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
7 years ago

Similarly, can Custom Data values be extracted and displayed in the SOTI Lockdown via a Macro reference or other mechanism?

RC
Raymond Chan Diamond Contributor
7 years ago

What you want is more than mechanism to define/modify custom macro or similar entities.  Are you aware that data collected are normally buffered on the device and there is indeterminate time lag before data collected by the device agent can be synchronized back to the MobiControl server? 

In such case, can you tolerate outdated data being displayed on your lockdown menu if your device is off-line?  In other words, what is the maximum tolerable delay between text file data change and lockdown menu display update?

FG
Fabian Gysel
a year ago

Hi Raymond Chan,

What if it can be tolerated that the data is outdated? Is there a way to use custom data, which has been extracted from an INI file, through a macro on the lock screen? In our case, when an application is started, the name of this person is saved in an INI file and then forwarded to SOTI, where it is displayed under "Custom Data Manager" on the deviceinformations. Now, it would be great if we could display this with %loggeduser% on the lock screen.

Thanks