Hi,
I want to execute a script on page load and set a card variable based on the output of that script but not the exact script output.
In practice I want to do something like in the page-level Execute shape data field:
[sep:|@]Script:scriptname@Dummies:dummy=1/2@Parameters:MAC=[thisMAC]@Options:NoConfirmation,CloseWhenFinished@SetTrigger=ValueChanged-[sep:|@]SET@CardVariable@newVar@[Param:1/1,101,[CardVar:scriptOutput]|*]@SetTrigger=ValueChangedIt works when I only have the script but not when I have both.
Hi Robin,
Wouldn't it be possible to set the session variable in the script as well?
Passing Automation script output to session variables
Kind Regards,
Jarno
In theory, it should work as I think the logic is available. However, when I was testing the script did not always execute when I added another SET with the output session variable. The software team might give more info on that. I’ll reach out to them.
Hi Jarno,
I’m already setting an output variable in the script but it’s a generic script and I want to try to keep it that way. I’m also setting other variables in the Execute shape data field (using other variables set in the InitVar shape data field), not shown above, which I need to keep as well.