cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Concatenate strings in Mapper snap

darshthakkar
Valued Contributor

I want to utilize the functionality of mapper snap to prefix my value with a static string, then concatenate with other variables and again concatenate with a static string.

Iโ€™m able to do the concatenation part however I cannot prefix the string. Any suggestions please?
Thanking you in advance for your time.

1 ACCEPTED SOLUTION

If your column is of number type than yes, it wonโ€™t work. Youโ€™ll have to try something like this:

"00"+$ID.toString()+"00"

View solution in original post

4 REPLIES 4

bojanvelevski
Valued Contributor

Hey @darshthakkar,

You can do the prefixing with concatenation. Ex.: "00"+$ID+"00"

Let me know if this is what you need.

I tried the above approach and somehow it didnโ€™t work for me. I will try a second time and keep you postedโ€ฆ

If your column is of number type than yes, it wonโ€™t work. Youโ€™ll have to try something like this:

"00"+$ID.toString()+"00"

Thanks a TON @bojanvelevski for providing me the right direction. I did mess up with the " " while concatenating variables and yes one of them was a number indeed.

Remember, you suggested me to parseInt($ID) for sort previously? Itโ€™s working now so THANK YOU ๐Ÿ˜ :smiling_face_with_three_hearts: