Announcements
Hi all,
I am writing a plugin for restricting delete access for non admins. I have registered the plugin on pre operation with delete message. But I am unable to get the record details. Please find below the code snippet
@Anonymous
Is there a reason why you don't use security roles to control the delete action?
because in the Delete message the Target is an EntityReference and not an Entity.
If you need to retrieve additional details you will need to create an Image and fetch the fields from the Image, keep in mind that the pipeline step is important (Pre-Operation or Post-Operation, both sync)
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 531 Most Valuable Professional
Haque 261
Kalathiya 221 Super User 2026 Season 1