Forum Discussion
I think I was not clear.
Basically, I would need to Union to happen with adding a separation of level between the 2 elements unioned.
Such as:
{
field1: val1
field2: val2
}
Union to
{
content: val
}
Is generating the result as:
{
{field1: val1
field2: val2
}
{content:val}
}
So I could refer to the first part with $.1 independantly from $.2
Does this make more sense?
Thanks,
Hi Eric,
Might below pipeline help you what you are trying to achieve.
testJoin_2019_04_10 (1).slp (8.3 KB)
Regards,
Ajay
- bojanvelevski5 years agoValued Contributor
Here is the input:
And the result:
So I gave you the logic for matching a correct format of an email. I you want to stop the pipeline, or throw an error, than you have to make some adjustments.
For example:
$email.match(/[1]+@([\w-]+.)+[\w-]{2,4}$/g) == null ? “fail” : “pass” if you want to use expressions. Other way I can think of is a Data Validator. Select Pattern as a Constraint and enter the regex into Constraint value.
-
\w-. ↩︎
I tried it via the below test pipeline but it does not work, not sure what I am doing wrong
Email Validator_2021_05_20.slp (6.5 KB)
-
\w-. ↩︎
-
-