Hello. I am trying to set a variable in an ETM data mapper based on whether an external bond exists or not. Below is my expression to set the variable to either true or false (the assyst resource for the mapper is Contact User):
if (outbound.self) {
if (! outbound.self.bonds.externalIdentifier) {
false;
}else{
true;
}
}
else {
false;
}
With my test data, I know that the bond does exists, so I believe this should be evaluating to true. However, no matter if the bond exists or not in the ips_bond table, this expression always evaluates to false.
I have tried just using outbound.self.bonds.externalIdentifier and outbound.self.externalIdentifier to bring back the identifier in the variable instead of setting it to true/false, but it always evaluates to null.
The wiki is not clear on how this value can be used.
We are running ETM 1.6 and assyst 11.4.1.
Any help appreciated.
Thanks,
Duncan