Hello,
Can we pass multiple values from a variable in JavaScript activity into filter criteria of subsequent query activity.
Tried using "is Included in" but all the values from Variable are being read as single value inside the filter criteria of query activity.
How can we have read all them separately, any suggestions appreciated !
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Can you try the below code once?
var id = []
var res = query.getElementsByTagName("{{schema name}}")
for each (var w in res){
id.push("'"+w.getAttribute("attribute name")+"'");
}
vars.idArray = id.join(",").slice(1,-1);
logInfo(vars.idArray);
if it is a string that is in filter criteria should use $noescaping(vars/@idArray) in it.
Hi,
Can you try the below code once?
var id = []
var res = query.getElementsByTagName("{{schema name}}")
for each (var w in res){
id.push("'"+w.getAttribute("attribute name")+"'");
}
vars.idArray = id.join(",").slice(1,-1);
logInfo(vars.idArray);
if it is a string that is in filter criteria should use $noescaping(vars/@idArray) in it.
Views
Replies
Total Likes
Popping in 3 years later to say thank you so much for saving me from bashing my head against this problem - turns out $noescaping() works perfectly!
Views
Replies
Total Likes
Hi,
You can define your variables in two(or more) separate variables in javscript activity and then in query activity use two(or more) different conditions with OR operator(separate condition for every variable with same column of table). I think this should work if i understood it correctly.
Regards
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies