Skip to main content
Solved

string creation in Expression Builder

  • October 22, 2024
  • 3 replies
  • 65 views

phongshader
Contributor
Forum|alt.badge.img+3

I want to create a string group-<vari1>-<var2>@thing.com. What I’ve got in expression builder is (‘group-{{R1.group}}-{{R2.role}}@thing.com’) but the output is group-’<var1>’-’<var2’@thing.com what I want is group-<vari1>-<var2>@thing.com. How do I change the expression to get the desired output?

Best answer by phongshader

I found a way to do this but it is very cumbersome:

concat(concat(concat(concat('group-','{{R1.group}}),'-'),'{{R2.role}}'),'@thing.com')

that outputs:

group-<vari1>-<var2>@thing.com
There must be a more elegant way to do this...

View original
Did this topic help you find an answer to your question?

3 replies

phongshader
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 6 replies
  • Answer
  • October 22, 2024

I found a way to do this but it is very cumbersome:

concat(concat(concat(concat('group-','{{R1.group}}),'-'),'{{R2.role}}'),'@thing.com')

that outputs:

group-<vari1>-<var2>@thing.com
There must be a more elegant way to do this...


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14

I was about to say using substring but it’s messy as well. 


Roxwell
Contributor
Forum|alt.badge.img+9
  • Contributor
  • 225 replies
  • October 23, 2024

That’s the best way, but it’s not elegant.


Reply