I'm working on a script which I want to integrate via the right-click menu. I've got it all working well except one thing. I would like to use the OC users email-address as a parameter which is passed to the script on the webserver. I know how to do the username but I would like the email address as well.
The username is passed like so:
anybody a clue on how to pass the users email address? The model which is selected when starting the menu option is not the user model but an actual device.
thanks in advance
I think opening a ticket with Support and asking them to ask the Spectrum Dev team, "can anything else be passed under com.aprisma.spectrum.app.util.context.ApplicationContext besides USER_PARAMETER_NAME?" will be your best bet.
I've wondered this for a few years, and grepping all the logs/configs/SDK docs comes up with nothing.
It would be great if they listed all the methods and variables accessible under com.aprisma.spectrum.app.util.context.DefaultApplicationContext.
I think the only way you are going to be able to do that is incorporating some Command Line Interface (CLI) to grab the value of the User_Email attribute id 0x12912 from the User model for that user.