Hi All, I’ve done the setup part for google calend...
# suitescript
d
Hi All, I’ve done the setup part for google calendar integration and tested google’s official js code on local machine now I have implemented the same code in suitescript using suitelet. but, I’m getting one error saying “response is not defined”. i have removed the client ID ///////////////// code starts here /////////////////
b
error looks valid to me
you never define the response variable
d
you mean to define response
b
Copy code
response.write(html);
you use response without declaring it first
I also heavily recommend not generating your response html like that
its usually far easier to maintain a html file that you read and then write to the response
depending on your needs, you can do serverside rendering if you need dynamic content
d
I found the solution. I wrote context.repsonse(html) and it resolved the issue