Pass the values of the global fields to the script performed on Server as a script parameter.
List ( Globals::Field1 ; Globals::field2 ; Globals::field3 ; // and so forth )
can be the expression used to pass the values as a script parameter.
GetValue ( Get ( Scriptprameter ) ; 1 )
can be the expression to access the value of Globals::Field1
This method assumes that some value will be passed for every field except the last field listed in the List function. (The last one can be empty.)
If multiple fields might be empty, you can pass a text expression such as:
"Let ( [ $FieldVal1 = " & Globals::Field1 & "; $FieldVal2 = " & Globals::Field2 & " ] ; 1 ) "
Then Set Variable [ $Dummy ; Evaluate ( Get ( ScriptParameter ) ) ]
will assign the value 1 to $Dummy, but also create variables $FIeldVal1 and $FieldVal2 and assign them the values of the two global fields.