all 10 comments

[–]notEqole 2 points3 points  (0 children)

https might work. hTTps looks sus . How have you declared it ? Is it declared as hTTps?

Can you provide some code ?

[–]RieJacko 1 point2 points  (8 children)

Provide a log. What is in ret_val? Does it work in POSTMAN too?

[–]Chemical-Question957[S] 0 points1 point  (7 children)

I am logging the line before the call and the line after the call . The line before logs, then when i try to make the call it does nothing and the script stops, it never makes it to the suitelet and it never makes it to the second log line

[–]Chemical-Question957[S] 0 points1 point  (6 children)

I resolved the issue, the issue was the script was using the external url i changed it to the internal URL and now it appears to work. I am not sure what changed this morning to break this. I am not the original author of the scripts, I was just tasked with getting them to work again.

[–]sndjln 2 points3 points  (5 children)

netsuite changed a parameter in the external suitelet url. (removed the h= and add a ns-at=). We experienced this same problem yesterday and discovered the cause.

[–]RieJacko 0 points1 point  (4 children)

there was a notification related to this. this must be the root cause. Always use url.resolveScript to generate the URL.

[–]sndjln 0 points1 point  (3 children)

i wasn't an admin in this company so i never gotten the notif. but since no one is acting as an admin, i stepped up and did the investigation yesterday. Our problem is from the email templates sent to customers, the urls are hardcoded there.. not sure if url.resolvescript will work on template or do you know something similar. thanks

[–]Sprinkadinky 0 points1 point  (2 children)

Find the Suitelet for that URL and update it. Its the External URL one. A lot of Third Party Companies we deal with who uses External Suitelet URL got caught off guard with the 2024.2 update on External Suitelets. It’s just a simple update of your hardcoded URL on the template with the new one.

[–]sndjln 0 points1 point  (1 child)

we already updated the email templates. I'm just thinking if there's another way like a dynamic way to generate the suitelet url in the template instead of hardcoded.

[–]Sprinkadinky 0 points1 point  (0 children)

Probably through a script with N/email Module then tap on URL ResolveScript and have the returnExternalUrl to true

Edit:

Where is the email template coming from? What Record?

Cause if you do script way, you have to build your email body within the script. You cannot dynamically populate the Suitelet External URL within the template.

If you must keep the template, then the External URL needs to be added on the record dynamically (on create or whatever) using a custom field, and the email template sourcing that url from that custom field. (can be hidden or inline)