This topic contains 3 replies, has 0 voices, and was last updated by Carlo Ibarra 14 years, 10 months ago.
-
AuthorPosts
-
December 2, 2008 at 1:00 pm #4344
mikespencerHello,
I’ve deployed a suitelet with SuiteBundler.
My problem is I have a bunch of hosted pages that reference the Suitelets.
Whenever I deploy I have to find all instances of each suitelet in the hosted pages and replace them with the new url.
I realize the search and replace part isn’t going to go away but it would be really great to be able to reference the suitelets using their text id rather than their numeric id and deployment id
e.g. https://forms…./scriptlet.nl?scrip…ymysuiteletid&…
rather than
e.g. https://forms…./scriptlet.nl?script=7&deploy=1&…
Has anyone found a back door syntax for this?
This is a cached copy. Click here to see the original post. -
December 2, 2008 at 1:01 pm #4345
mikespencerposting altered my desired url syntax. parameter should be
scriptid=customdeploymysuiteletid
-
December 4, 2008 at 4:23 am #4346
iqureshiRE: Suitelet Ids
Hello
I believe Suitelets that are not externally hosted can be referenced by their named Ids (script and deployment)
Suitelets that are externally hosted need to be referenced by their Netsuite internalIds.
Thanks
-
January 13, 2010 at 2:51 am #4347
Carlo IbarraRE: Suitelet Ids
Hi mikespencer,
If there are significant number of suitelets being referenced from the hosted pages, you could create a broker suitelet that will accept the text scritpid and text deploymentid as parameters, and will redirect the response to the target suitelet.
This does not solve the problem of referencing an external suitelet by its internal id but, at least, you would only need to find and replace just one suitelet id.
i.e. (broker suitelet)
PHP Code:
function main(request, response)
{
var scriptId = request.getParameter(“scriptid”);
var deploymentId = request.getParameter(“deploymentid”);
var allParams = request.getAllParameters();
var requestParams = {};
for (var i in allParams)
{
if (i != “scriptid” && i != “deploymentid”)
requestParams[i] = allParams[i];
}
response.sendRedirect(“SUITELET”, scriptId, deploymentId, null, requestParams);
}
-
AuthorPosts
You must be logged in to reply to this topic.