How to save data on suitelet?

I am new to suitescript. And I have a suitelet which is bind to a client script , I want to save the data when click submit.

Rookie Asked on July 7, 2020 in SuitePeople.

You probably want to explain this better, I cant tell if you have a client script calling a suitelet, or if you have a suitelet with a client script. Its always best to include your code in your question. You should also explain what your data is and what you want to save it as.

on July 7, 2020.
Add Comment
2 Answer(s)

Suitelets are stateless code executions. If you need to save data you need to write to a record of some sort. Could be a custom record, could be a JSON file, could be transaction… really depends on what your situation is.

Advanced Answered on July 8, 2020.
Add Comment

We first need to identify the data and where to store, if we need to save on existing record or transaction we can simply load a record and set field values and submit.

If in case we need to Create some record and then save we need to create a recordset field and save it. We can do all this in both the GET and POST method of Suitelet.

Beginner Answered on July 11, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor