How do the collective mass tend to treat internalI...
# suitescript
w
How do the collective mass tend to treat internalIds in script? Feel free to vote 🙂 #️⃣ = Force the values to a number with parseInt everywhere 🧵 = Force the values to a string everywhere somehow computerrage = Do "==" / "!=" comparisons to not have to care
#️⃣ 1
🧵 3
computerrage 3
j
I go with the String method because for #stupidnetsuitereasons sometimes it has to be a string when returning it as a return parameter from a WF Action script.
w
Interesting, is that the case regardless of what you set the return type to be in the script?
j
My return type is List/Record (it’s a custom record). If I don’t wrap the returned id value in a
String()
it fails
crabs about INVALID RETURN PARAMETER FORMAT or something