Sunday, January 27, 2019

RESTlet > Determine the external URL to call a bundle RESTlet

When bundling a RESTLet and installing it in a target account the unique numerical id of the script and deployment may change.  This may make it difficult to reference the RESTlet URL from an external application or script.

To handle this situation, you can create the RESTlet using a unique script ID and deployment ID. Then use these IDs as the RESTlet URL used in the external application/script.

For example:

Instead of: https://rest.netsuite.com/app/site/hosting/restlet.nl?script=123&deploy=456

Use: https://rest.netsuite.com/app/site/hosting/restlet.nl?script=customscript_my_unique_script_name&deploy=customdeploy_my_unique_deployment_name

1 comment:

  1. This is great! Do you know if this is documented somewhere in Netsuite?

    ReplyDelete