If it's a record link, I think nlapiResolveURL() i...
# general
n
If it's a record link, I think nlapiResolveURL() is what you are looking for. So, if you want to provide a link to a SO(id=123) then something like
Copy code
nlapiResolveURL('record', 'salesorder', 123, 'view')
should give you the URL to that record.