Reputation: 927
I have done CRUD operations in Netsuite using RESTlet.
After deleting the record using RESTlet, I can update my database by code.
But if the user will delete the contacts directly from GUI, I don't know how to delete the particular (deleted records in Netsuite) records in my database. So i need a code to synchronize the contacts of Netsuite with the database.
Upvotes: 0
Views: 187
Reputation: 7343
You should put the record deletion code of your database in your User Event script, which, would fire whether you delete from Restlet or UI.
If record deletion from database is a time consuming process, better would be to fire a Scheduled script from your user event script on delete event which would then do the synchronization/deletion process from DB.
Upvotes: 0