How to remove space in the transform and then concat

I am trying to write a transform which can remove the space from account attribute of a source and then I could concat the those account attribute in a certain format

Hi @jyghosh ,
you can use replaceAll transform
“type”: “replaceAll”,
“attributes”: {

    "table": {
        "\\s+": ""
    },

and concat transform

{
“name”: “Transform Name”,
“type”: “replaceAll”,
“attributes”: {
“table”:{ “\s+”:“”},
}

Refer below link

Replace All | SailPoint Developer Community.

2 Likes

If you are looking to remove the end spaces then you can use this transform before you use concat transform

Hi @jyghosh

Better if you can give the input and expected output sample data scenarios, even we can test and give you the complete transform.

Please explore basic transforms which are building blocks , later we can achieve complex data scenarios by tweaking and testing throughly.

  1. "type": "concat"

basic examples:
Concatenation | SailPoint Developer Community

  1. "type": "trim"

Note:
trim – with trim you can only remove leading and trailing spaces.