Mask the numbers in middle and show only first three and last four | Community
Skip to main content
Level 5
November 12, 2023
Solved

Mask the numbers in middle and show only first three and last four

  • November 12, 2023
  • 1 reply
  • 826 views

Hi Everyone, 

 

Is there a way to personalize the email by adding a VIP number which is a column in schema with masked something like below:

in schema , column value is actually like this 12345678432

1234******432

 

Thank you in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manoj_Kumar

Hello @rvnth 

 

You can do something like this in enrichment.

 

Left(ToString(@VIPNumber), 4 )+"*****"+Right(ToString(@VIPNumber), 4 )

 

 

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
November 13, 2023

Hello @rvnth 

 

You can do something like this in enrichment.

 

Left(ToString(@VIPNumber), 4 )+"*****"+Right(ToString(@VIPNumber), 4 )

 

 

Manoj  | https://themartech.pro
rvnthAuthor
Level 5
November 22, 2023

Hi @_manoj_kumar_ 

 

can I add this values inside my delivery template? I have added but then it keep saying undefined. My target mapping was recipient table inside the delivery and this column was present in a different schema. Please suggest

 

Best,

Revanth

Manoj_Kumar
Community Advisor
Community Advisor
November 22, 2023

Hello @rvnth 

Use this code in Enrichment and replace the @VIPNumber with your column.

Manoj  | https://themartech.pro