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

Notifications

Announcements

No record found.

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,216 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans