Workflow instance variables!

Avatar

Avatar
Validate 1
Level 2
robertw937098
Level 2

Likes

3 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
robertw937098
Level 2

Likes

3 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
robertw937098
Level 2

27-09-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Level 6
David__Garcia
Level 6

Likes

108 likes

Total Posts

217 posts

Correct reply

45 solutions
Top badges earned
Coach
Builder
Engage 10
Seeker
Bedrock
View profile

Avatar
Coach
Level 6
David__Garcia
Level 6

Likes

108 likes

Total Posts

217 posts

Correct reply

45 solutions
Top badges earned
Coach
Builder
Engage 10
Seeker
Bedrock
View profile
David__Garcia
Level 6

27-09-2018

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

Answers (2)

Answers (2)

Avatar

Avatar
Coach
Level 6
David__Garcia
Level 6

Likes

108 likes

Total Posts

217 posts

Correct reply

45 solutions
Top badges earned
Coach
Builder
Engage 10
Seeker
Bedrock
View profile

Avatar
Coach
Level 6
David__Garcia
Level 6

Likes

108 likes

Total Posts

217 posts

Correct reply

45 solutions
Top badges earned
Coach
Builder
Engage 10
Seeker
Bedrock
View profile
David__Garcia
Level 6

16-09-2019

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

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

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

Avatar

Avatar
Validate 1
Level 2
robertw937098
Level 2

Likes

3 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
robertw937098
Level 2

Likes

3 likes

Total Posts

19 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
robertw937098
Level 2

28-09-2018

Thank you!