Hi Everybody,
I just need your expertise about some questions that I ask to myself :
Explaination :
I have a long process developed, for the moment within a plugin, the purpose is to dispatch members (contacts) according to some rules, in a list and create severals records on CRM.
This process can take 2 minutes and more, so it's long for the user because he dont have any wainting informations but also it's maybe a problem for the web service usage (busy):s
So, I wondered if it would be better to move this development in REST and SOAP.
I adapted my code in Javascript and it works fine, but I met some problemes with Rollback, for instance : I cannot delete a newly created record because it is used by the AsyncService (for a asyn plugin task)
My questions are :
- Is there some best pratices for Rollback on error, with Javascript ? I dont find any informations about this point...
- Is it good to let my process work with Plugin ? More than 2 minutes can be "dangerous" for the application ? What are the risks ?
Thanks a lot for your help!
Kya