Cast userID to int

hello there, I have a userID as string in a workflow and I want to cast it to string
I used this function int() but the id converted to some integer with + sign

what I want to achieve is that I have a user lookup function in the workflow
and I want to lookup for a user with the ID.
when I pass the string as an ID it prompts me an error

any suggestion would be welcomed

IDs are represented as unsigned integers, not integers. Casting an unsigned integer (uint) to an integer produces unexpected results because an int can’t (always) represent a unit.

What error exactly are you getting? Passing the ID as a string should be ok (since web applications do that also)

it seems I was passing the wrong field! … but good to know the IDs are Uint :slight_smile:

1 Like