Need device serial number in Soti Surf website

Solved
MB
Matt Barnes
Zebra (VIQF) - Foot Locker Global

I am needing to retrieve the device serial number from within Soti Surf.  I am attempting to make a call to an api from javascript and the macro will not translate from %SERIALNUM% to the hardware serial number.  Any ideas?

8 months ago
SOTI surf
ANSWERS
RC
Raymond Chan Diamond Contributor
8 months ago

 As Soti Surf supports custom attribute macro in its dynamic URL, one possible workaround is to define a custom attribute (HwSerNum, say)  whose value is set manually (or via API) to be equal to the device hardware serial number, and use the macro %CustomAttr:HwSerNum% in your dynamic URL.

Solution
MB
Matt Barnes
8 months ago

Thank you.  That's working for me.

MD
Matt Dermody Diamond Contributor
8 months ago

Hi Matt!

Long time, hope all is well. It's a shame you guys aren't getting this sort of support from your hardware vendor 😉

If the website that you're interacting with supports parameter passing you can have the serial number macro resolved in the URL path that is provided to Surf before the link is launched.

MB
Matt Barnes
8 months ago

Doing well, good Sir.  Hope you are, too.

I think I got you.  The browser will only translate the macros within a URL.  I guess I didn't quite get it from the docs.  I'll play around with it tomorrow and let you know.

Thanks.

MD
Matt Dermody Diamond Contributor
8 months ago

That's right. I'm not aware of any ability for Surf to resolve those Macros in any other way. There may be another method, that's just the only one I'm familiar with.

MB
Matt Barnes
8 months ago

Ran into an issue this morning

Finding the following only resolves the device name into the mac address; the serial number is not resolved at all:  /index.php?deviceName=%DEVICEID%&serialNumber=%SERIALNUM%

According to the docs at Dynamic URLs the only macros that work are %DEVICEID% and %MAC%.  Is this correct?  None of the other macros will work correctly?  

To be honest, I'm not launching Surf from a lockdown screen, but using the Homepage setting within the Soti Surf configuration for my profile.

A
ABMOD@SOTI
8 months ago

Hi Matt,

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

We are glad that your question is answered now.

Similar Discussions