web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Not getting Target ent...
Power Apps
Answered

Not getting Target entity details when triggering plugin on delete message

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

 

Amruthavarshini_0-1672228486694.png

 

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Anonymous 

    Is there a reason why you don't use security roles to control the delete action?

     

     

  • Verified answer
    Guido Preite Profile Picture
    1,490 Super User 2024 Season 1 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard