Could just use the Get Environment Variable activity and pass in to the invoke code block as an argument.