Page 1 of 1

Error in script expression when using setPrivateData

Posted: Fri Aug 25, 2023 12:34 am
by AA5MC
Hello,
I have a script expression and I'm trying to set : job.setPrivateData('Destination', 'MyDestination');

However, the script is erroring saying that job.setPrivateData is not define?
Is it possible to set job.setPrivateData in a script expression?

if so anyone have a example?

Re: Error in script expression when using setPrivateData

Posted: Fri Aug 25, 2023 11:57 am
by Padawan
Script expressions only have read access to the switch api.

If you want to set private data using a script expressions, then you can use the data mapper app. There you set the tag in the app and calculate the value using a script expression.

Re: Error in script expression when using setPrivateData

Posted: Fri Aug 25, 2023 1:19 pm
by AA5MC
thank you!