I have created a Suitelet and set it as CallBack U...
# suitescript
k
I have created a Suitelet and set it as CallBack URL, I need to read the response from that Suitelet How to achieve it, can anyone suggest it.
s
Are you trying to use 1.0 or 2.0?
k
1.0
s
Do you want to call a suitelet from a suitelet ?
k
No, I will am requesting another URL, I am saving that response in my Suitelet
s
From where are you requesting ?
k
need to get those response from my Suitelet
User Event Script
s
nlapiRequestURL(url, postdata, headers, callback, httpMethod). you can use this
k
When i request a url from UserEvent for the first time i will get response to the call back URL(Suitelet in this case) i just want to read the response from my suitelet not to request it again
k
@KT wouldnt you just use
Copy code
var response = nlapiRequestURL(url, postdata, headers, callback, httpMethod)