Prince Mehta, please ensure that string contains only numeric characters otherwise you will get an error.
parseInteger is the correct function to use if you want to turn a string into an integer.
https://docs.mendix.com/refguide/parse-integer/
You need to only have digits in your string. It may be worth wrapping your string in a trim function before passing it to parseInteger to make sure there aren't any leading or trailing whitespaces.
https://docs.mendix.com/refguide/string-function-calls/#trim
It's also worth checking that the string value isn't empty before passing it to parseInteger.
If you are still getting errors, can you share the error message and the string you are using? You can put a breakpoint in your microflow where you call parseInteger if necessary to get this.
Good luck, and I hope this has helped.
Hi Prince,
First check the string is good to convert as integer by using regular expression.
if isMatch($yourIntString, '^([0-9]+)$') then true you can use parseInteger($PropertyID_NewExist)
else as Robert mention trim whitespaces or any alphabets ignore with default value. Also add error handling in that parseInteger() activity.
Hope it helps!
Thanks & Regards,
Manikandan K