The GetTradingPartnerVariable function allows you to query variables in JobStep EntityIfCase or in mapping. Return value is the value of the variable of the location to the specified GLN. If the second parameter (the GLN) is not set, the partners main location of the message will be used.
If the variable is not defined at the location, then the variable is searched for at the template partner in the main location.
GetTradingPartnerLocationVariable('VariablenName', ['GLN'])
GetTradingPartnerLocationVariable('TestMode')
GetTradingPartnerLocationVariable('TestMode', '4035811000006')
Note: If the variable is created as a flag and you want to query for the boolean value in the mapping or job, the function must be encapsulated again with IsTrue() or IsFalse().
IsTrue(GetTradingPartnerLocationVariable('TestMode'))