s there way we can send response back to external ...
# suitescript
k
s there way we can send response back to external suitelet URL, when you receive post request from outside applications ? anyone ?
b
can you explain this better, be clear on what is the sender of the request and what is the receiver
k
for instance: sender
Postman
and Receiver
NetSuite Suitelet
As soon as you send from postman, suitelet should be able to response back to postman, which should be customized by us like some object or array {"name": k}
b
This confuses me more. This sounds like a normal http request
Postman posts to your suitelet
Your suitelet returns a json response
k
it isn't returning anything right now but how can I do it ?
b
have you written a suitelet before?
k
I have suitelets but I don't know how to send response back
k
how can I use this in suitelet ?
b
the onRequest entry point has an object as a parameter, and one of the values of the object is a ServerResponse
k
Thanks @battk
it helped me to find