Expand my Community achievements bar.

SOLVED

Add 04 spaces when matching records on Update activity?

Avatar

Level 6

My recipients codinternocomputacional has 04 white leading spaces for each value. 

My other source CSV's "customer_cic" , which is the key to make the match, has no leading white spaces. I cannot/should modify recipients. How can I add the 04 when doing the key matching?

 

 

ogonzalesdiaz_0-1697467578219.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @god_prophet ,

In Update data activity > Identifier > edit expression > Advanced selection > Edit the formula using an expression > concatenate customer_cic with the prefix you need to add.. Example, 

'04'+customer_cic(from File)

ParthaSarathy_1-1697468395888.png

 

ParthaSarathy_0-1697468251181.png

Result,

It will append 04 to the input value.

ParthaSarathy_0-1697616703139.png

If you want to add 4 white spaces instead of 04, same you can use below expression and replace 04 and type 4 spaces in it as below,

'    '+customer_cic(from File)

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @god_prophet ,

In Update data activity > Identifier > edit expression > Advanced selection > Edit the formula using an expression > concatenate customer_cic with the prefix you need to add.. Example, 

'04'+customer_cic(from File)

ParthaSarathy_1-1697468395888.png

 

ParthaSarathy_0-1697468251181.png

Result,

It will append 04 to the input value.

ParthaSarathy_0-1697616703139.png

If you want to add 4 white spaces instead of 04, same you can use below expression and replace 04 and type 4 spaces in it as below,

'    '+customer_cic(from File)