How to identify for which flow we are requesting in javascript..
i have 2 flows a and b.
i need to find in javascript whethere request is from flow a or b.
i have tried reqest.url.includes("a")..
and reqest.url.includes("b")
am not getting a exact answer any one suggest
You can refer current.flow.name variable to get flow name
JS sample
var test=context.getVariable("current.flow.name");
print("which flow" + test);
Snapshots trace
Thanks,
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |