Workflow data comparison

I am checking to see if anyone has done some sort of conversion of string to a numerical value. Basically, the string holds a numeric value ex.“498”
Variable 1 is a number and this variable 2 is a string. Is there a way we can achieve this conversion via workflow?

Hello @Pabka ,

Welcome to the developer community :wave:t2:!

Could you elaborate more on this .
Which two values you are comparing?
What is the source of these values ( static / variable from steps)?

@Pabka

I doubt you would be able to do these conversion via workflow. Please refer this for available operators for workflow Operators - SailPoint Identity Services

I am getting the numerical value through a variable that I have defined. It gets the count from a group. Then another variable reads a tag and return a string ex “123”. I have already validated the data type using Verify Data Type operator

Try storing the numerical value in a 'Define Variable" and apply concat with empty string.


Then use this variable and compare with the second variable add " " to the second variable

I don’t think that will work. If you need to convert to string, you can easily do that by wrapping the variable with {{variable_path}} and select the type as Text.

1 Like

I don’t think you can compare string with a number or convert string to a number. I may be wrong but I haven’t found a way to do that via workflow.

Workflows does not yet have support to convert strings to integers.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.