Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

Load Data in Adobe Campaign classic

Avatar

Level 1

we are trying to load data in to campaign but due to some reason we are getting xml tags for the product name like xxproductname and we are having it as <span class="xxx">xx</span>productname.

how to remove the xml tags and update the product name in ACC and have final output as xxproductname?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Make use of Replace function in When function. Case(When(check for substring to see if you have a tag, use replace function here), Else(use original product name if you don't have tags))

Example:

Case(When(Left(ProductName, 1) = '<', Replace(ProductName, '<span class="xxx">xx</span>', 'xx')),Else(ProductName))

I have used something similar to the above earlier. you can make use of it.

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

Make use of Replace function in When function. Case(When(check for substring to see if you have a tag, use replace function here), Else(use original product name if you don't have tags))

Example:

Case(When(Left(ProductName, 1) = '<', Replace(ProductName, '<span class="xxx">xx</span>', 'xx')),Else(ProductName))

I have used something similar to the above earlier. you can make use of it.

Avatar

Level 1

Thank for the help.. that worked for me