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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Plugin update message get status

(0) ShareShare
ReportReport
Posted on by 7,316

Hi,

I need some help figuring this out.

I am writing a plugin which is on update message post operation. Triggering attribute is a two options field.   

I am trying to check for the status of the record that it is triggered on before letting it to run the rest of the code. So, I was wondering is there a way to know the status of the record other than selecting status specifically from filtering attributes? Because, I don't want the plugin to be triggered on status change. I tried post image as well, but I am not getting Status in the image for some reason while I get other fields fine. Which is causing some confusion to me in understanding how to get the Status of the record. 

Thanks for any help! 

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, 

    I understand that your target does not contain the status field. You need to get this value from the server by performing a retrieve.

    Example: 

     Entity myRecordwithStatus = service.Retrieve(Target.LogicalName, Target.Id, new ColumnSet("statecode"));

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 189 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans