<@U5719J6KY> Have you tried using the NetSuite htt...
# suitescript
m
@badgerdigital Have you tried using the NetSuite http or https library instead? I'm using it inside of a scheduled script.
b
I have not used that before. How would I reference that in the script?
Sorry for the newbie question....
m
No worries, I've been working in NetSuite for almost 3 years and I still feel like a noob.
In the define section you'll need to add "N/https" or "N/http" depending on the url you're calling
b
Oh ok, I see what you're saying and then just call the method in that library to do the get....
m
And then to call it using a get looks like this: var response = https.get({ url: "https://www.example.com/?data=12", headers: { "Content-Type": "application/json" } }); return response.body;
❤️ 1
I hope that helps
b
awesome, thank you