Hello everyone,
I want to know the benefits of using nlapiResolveUrl() or url.resolveScript() over using the direct URLs which we get on script deployment page.
e
eminero
09/28/2020, 1:35 PM
It allows you to get the URL dynamically, it is bad practice let hard coded any URL, it might change in the future or it changes from Sandbox to Production
s
Sandii
09/28/2020, 1:49 PM
Great example is the datacenter specific URLs going away, that is not an issue if you don't hardcode your URLs.