Expand my Community achievements bar.

URL & TOKEN

Avatar

Level 2

Hello

 

I am importing a url with deeplink like: www.example.com/dynamiclink/deep?token=a12wsd3d4g67h7yy

I would like to process only token=a12wsd3d4g67h7yy in my worklow in a variable <%= token %>

and hardcode in my delivery www.example.com/dynamiclink/deep?<%= token %>

What function can help me here?

1 Reply

Avatar

Community Advisor

Hi @razengaan ,

Let say you have stored full URL ( www.example.com/dynamiclink/deep?token=a12wsd3d4g67h7yy) as alias @url, then use an enrichment and use the below expression,

Substring(@url,Charindex(@url,'token' ) , Length(@url))

and give alias as @token

ParthaSarathy_0-1732550936877.png

The output of @token will be token=a12wsd3d4g67h7yy

You can process @token as per your campaign requirement and call it in delivery by the following syntax,

www.example.com/dynamiclink/deep?<%= targetData.token %>