Workflow instance variables! | Community
Skip to main content
Level 2
September 27, 2018
Solved

Workflow instance variables!

  • September 27, 2018
  • 3 replies
  • 7082 views

Hi,

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by david--garcia

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

3 replies

david--garcia
david--garciaAccepted solution
Level 10
September 27, 2018

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

Level 2
September 28, 2018

Thank you!

david--garcia
Level 10
September 16, 2019

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

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

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