Best way to get application version into device Custom Attributes field

SR

What is the best way to get the application verison of an installed application, into a custom attribute field for that device?  I have created a custom attribute for the application version, but I want to avoid having to manually enter the installed application version in this field. Mobicontrol can obviously display the application version in the Applications tab of the Device Information.  But I would like to display this to the user in a dashboard column without having to drill down to the device information.

All devices are running Windows 10 Enterprise.

a year ago
SOTI MobiControl
ANSWERS
MD
Matt Dermody Diamond Contributor
a year ago

I don't have any experience managing Windows 10 devices in SOTI but I have accomplished similar in the past with Android devices using Custom Data instead of Custom Attributes. With Custom Data rules set up to read in a property value from an INI file I then use the Javascripting to query the versions of the apps that I'm curious about and then have the scripting save the result as a property in the INI file. The Custom Data Rule then extracts this value that has been saved so that it can be reported up into the console. 

ZC
Zafer Cigdem
a year ago

Hi Scott,

I did not test this out on Windows devices yet, but you may check out the APIs. For Android there is an API called: /devices/....installedApplications

And you can retrieve application version information on a device level and then using another API Call you can push this information to a CustomData/CustomAttribute to present the information on MobiControl Webconsole on the dashboard as well. So this would be an automatic way, and you can execute this API set frequently, let's say every day (using a Windows Task scheduler or such). 

example output from my Android device for Chrome by using the installedApp API as following:

 "$type": "InstalledApplication",
    "DeviceId": "9880ee1c2d1a",
    "ApplicationId": "com.android.chrome",
    "Name": "Chrome",
    "Version": "121.0.6167.178",
    "ShortVersion": null,
    "SizeInBytes": 10793233,
    "DataSizeInBytes": null,
    "Status": "Installed",
    "LicenseInfo": null,
    "CanChangeManagementState": false,
    "InstalledOn": "2023-08-25T15:08:16.057Z",
    "Build": null,
    "ExternalVersionIdentifier": null,
    "AppStoreVendable": null,
    "DeviceBasedVpp": null,
    "BetaApp": null,
    "AdHocCodeSigned": null,
    "HasUpdateAvailable": null,
    "IsRedemptionCodeUsed": null

I hope this helps. Thank you

Zafer

RC
Raymond Chan Diamond Contributor
a year ago

Hi Scott,

-Could you please clarify the reason(s) for needing app version in custom attribute field?  For example, using relevant macro of custom attribute in script, lockdown template, etc. or for advanced search expression for selecting targeted devices or for determining whether an alert/signal policy should be triggered/fired.

In many of the above cases, "custom data" may be the alternative data objects to look into.  Please also note that the normal information flow direction for custom attribute is from server to device, and custom data is from device to server.   

V
VPMod@SOTI.net
a year ago

Hi Scott

 
Thanks for posting on SOTI Pulse.
Thanks, Matt, Zafer, and Raymond for responding to the post, your expertise and willingness to help are greatly appreciated!
 

Have you had an opportunity to test the suggested solutions by Matt, Zafer, and Raymond and has it successfully addressed your query?
 
If not, or If you have any additional questions or concerns, please don't hesitate to reach out. We're dedicated to providing assistance and support.

Technical Support, SOTI Inc.