Anytime the data integration flow is executed, the following global variables are set automatically:
- request_tenant_name - a tenant name. Empty if the flow is executed under the main account. Read about tenants.
- request_user_name - a name of the user.
As usual, you can access these global variables programmatically:
importPackage(com.toolsverse.config);
// props is a java.util.HashMap<String, String>
var props = SystemConfig.instance().getProperties();
// use the same key you stored in props.put(...)
var tenant = props.get("request_tenant_name");
var user = props.get("request_user_name");
You can also use them to parametrize connections.
Comments
0 comments
Please sign in to leave a comment.