Skip to main content

Notifications

Announcements

No record found.

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! 

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,206 User Group Leader on at
    RE: Plugin update message get status

    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans