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

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
Employee 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
Employee Advisor

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

Avatar

Employee Advisor

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

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

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