Error in script expression when using setPrivateData

Post Reply
AA5MC
Newbie
Posts: 9
Joined: Wed Jun 21, 2017 8:38 pm

Error in script expression when using setPrivateData

Post 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?
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: Error in script expression when using setPrivateData

Post 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.
AA5MC
Newbie
Posts: 9
Joined: Wed Jun 21, 2017 8:38 pm

Re: Error in script expression when using setPrivateData

Post by AA5MC »

thank you!
Post Reply