powershellfinalbuilder

Access FinalBuilder variables from PowerShell code


I added "Execute PowerShell Script" action to my FinalBuilder project. Manual says that I can access FinalBuilder variables using following syntax (entered in Specify Script area):

$FBVariables.GetVariable("VarName")

But the problem is $FBVariables in my case is always null, I mean following statement returns True:

$FBVariables -eq $null

I have no idea what I am doing wrong.


Solution

  • $FBVariables is not available in the Execute PowerShell Script action.

    You will have to use the Run Script ( or Execute Script in older versions I think) action, set language to Powershell in the Script Editor tab and here you can use #FBVariables

    http://www.finalbuilder.com/Default.aspx?tabid=456&aft=9647#10952