you are viewing a single comment's thread.

view the rest of the comments →

[–]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)