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!

robertw937098
Level 2
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
David__Garcia
Correct answer by
Level 8
Level 8

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

View solution in original post

0 Replies
David__Garcia
Correct answer by
Level 8
Level 8

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

View solution in original post

David__Garcia
Level 8
Level 8

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

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

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