Skip to main content

Rule Concatenation - add commas or spaces

  • November 12, 2020
  • 6 replies
  • 298 views

andreammelde
Forum|alt.badge.img+3

When you concatenate in a rule right now, it makes it one long string. When combining multiple fields you often want to have a space or a comma to make it a list. It would be great to be able to add spaces or commas between the fields that get concatenated

6 replies

sai_ram
Forum|alt.badge.img+1
  • Expert ⭐️⭐️
  • November 12, 2020

@andreammelde I think we do support comma while concatenation. Please refer to this article for more information. 

Let me know If I got you wrong! always ready to help!


andreammelde
Forum|alt.badge.img+3
  • Author
  • Helper ⭐️⭐️
  • November 12, 2020

@sai_ram 

 the documentation does not reference adding a comma or a space


phani_kumar
Forum|alt.badge.img+3
  • Gainsight Employee ⭐️⭐️
  • November 13, 2020

Hi @andreammelde 

we can use any words or symbols in the Concat formula in Rule Transformations.

Below are some examples which I tried in the rule and below are the results for the same.

I created a few Formula fields in the rule Transform task using the “Concat” formula.

  1. Concat using “;” semicolon
  2.  Concat using “and”
  3.  Standard Concat( without using any special characters and/or words)

Screenshots for the same:

Concat using “;” semicolon

 

Concat using “and”

 

Standard Concat

Finally the result would be like below.

Screenshot:

 

Hope this helps.

Thanks.


sai_ram
Forum|alt.badge.img+1
  • Expert ⭐️⭐️
  • November 27, 2020

@andreammelde did above comment help you? Let us know if you need any help.


andreammelde
Forum|alt.badge.img+3
  • Author
  • Helper ⭐️⭐️
  • December 22, 2020

Note - you need to hit tab after the comma/ space/ semi colon in order for the next field selection to display.

 

Also - there is a limitation in concatenation which the spaces, commas, etc go to. I ended up having to create two concatenated fields and then join them in a second transform with another concatenate 


phani_kumar
Forum|alt.badge.img+3
  • Gainsight Employee ⭐️⭐️
  • December 23, 2020

Hi @andreammelde 

Yes, right now in our rules if you create any Formula, and to use them we need another Transform task. Because the flow would be like, once we save the transform then only the fields will be created at backend operation and from the next transform only we can use those formula fields.

Below are my Rule screenshots for the same:

Transform 1

Transform 2:

Thanks.