how do you know which id to throw in?
# suitescript
s
how do you know which id to throw in?
d
I was just testing something I knew wouldn't exist. use-case is checking if an optional different customization (which I am providing) had been installed to do different logic, so I know the particular type to check
s
yeah but I am saying
url.resolveRecord
requires a
recordId
I assume you want to check if your uniquely named recordType exists
d
pretty sure you can just put in any bogus id whether it exists in the account or not. it just hardcodes it onto the url
s
oh ok thats what i was wondering
I dont think its doing any validation on the existence of the record itself
But if it is doing validation on the recordType, then I would say its a good way to do it
d
yah like you can do
Copy code
url.resolveRecord({
    recordType: 'salesorder',
    recordId: 999999999,
})
s
0 governance is better than the other options of any governance?
d
true definitely. just having to use try/catch kind of irks me, that was all
s
Oh yeah try/catch is prob fine in this instance, kinda peculiar need though