Notifications
Announcements
No record found.
Hello All Experts,
I need to know the ideal example for delete plugin.
*This post is locked for comments
Some examples that I can think of is as follows,
1. A validation before delete, that allows only the deactivated record to be deleted, else throw an error
2. On delete of an account, create an entry in custom entity for log purpose
3. Update the custom revenue field(sum of revenue in child) in parent, on delete of a child entity.
Hello Ramanathan,
on which operation like post or pre do i need to write the plugin.
Below are my preferences:
1st scenario => pre validation
2nd scenario => post operation
3rd scenario => post operation
I want to do the delete but before delete want to get the id of the record for another operation.
Context.InputParameters["Target"] contains entityreference of the record that is available in context.
Sample plugin reference: sumedha8.blogspot.com/.../sample-plug-in-delete_1.html
Hi EmployeeOcta,If you want get the id of the record and need to do other operations means need to register a step delete message on post operation in the plugin you will id of the record you can do whatever operations you required with that id. If you want to stop deletion based on some validations you can throw an error from plugin which will stop deletion of record
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2