Does anyone facing a problem when calling a suitel...
# suitescript
s
Does anyone facing a problem when calling a suitelet using https.get ({url:'myurl'})?
j
What issue are you having? that could be due to you calling a suitelet from a server side script that is not available without login or perhaps not a fully formed url.
s
Yes,exactly
j
I think if you make your suitelet available without login and then when you get your suitelet url using url.resolveScript specify that you want the external url and that should work. You may need to amend the permissions on your suitelet so that it permits all roles too.
s
What Should I do for it ? I am using url.resolveScript({scriptId,deploymentId.returnExternalUrl,true}).But its returning an error saying it not fully formed url
j
Could you log what is returned from the resolve script call?
It should be a fully formed url (e.g. https://system.netsuite.com/app/etc...
When I tried without login it work fine. it return fully formed URL
j
Hmm that looks fine to me, I guess I'd make sure you're using the https module rather than just the http module?
s
I am using https module
j
Could you post your code just so I can double check nothing weird is going on, it sounds like you've done everything correctly. Just to confirm, you've got available without login on the suitelet and it's audience is set to all roles?
s
Yes, Its work now
when I set the availle without option
Thanks Mate 🙂
j
No problem, glad it works!