How to Create and pass Variable for Bearer Token?

Grab your needed testcases into a TestSuite.
At the end of the testcase wich creates the transactionId, you have to update the GlobalVariable needed:

GlobalVariable.tescaseId = transactionID // here you pass the needed value/variable to the global. the global variable has to be defined

Once you run the suite, the GlobalVariable will be updated and used accordingly. You won’t see it in the GUI profile but it should work.