Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

Workflow instance variables!

Avatar

Level 2

Hi,

Using an enrichment, I'm creating a custom instance variable in a workflow. As shown below.

1580754_pastedImage_1.png

However, the issue is that this field defaults to a string. I need it as a number. How can I change the data type to be a number?

Thanks,

Rob

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

Avatar

Community Advisor

Sorry just thought I should Update as I noticed an error.

ToInteger($(instance/vars/@difference)) correct

$(ToInteger(instance/vars/@difference)) wrong