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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Register plugin when Case(incident) is canceled

(0) ShareShare
ReportReport
Posted on by

I want to register e plugin when a Case is cancelled. I know that when is resolved i need to register on Close message and get context.InputParameters["IncidentResolution"]. Can you please help me!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Needs to be registered in SetState and SetStateDynamicEntity messages and inside plugin needs to get:

    if (context.InputParameters.Contains("EntityMoniker"))

     {

              EntityReference targetMessageImage = (EntityReference)context.InputParameters["EntityMoniker"];

    }

  • Albert_ Profile Picture
    458 on at

    Could you explain a little more?
    I have written a plugin on close message of incident, and want to use that in cancel statecode as well.

  • Suggested answer
    udayan raju Profile Picture
    42 on at

    Here is the possible solution I did, on Plugin registration step, using follow message SetState and StateStateDynamicEntity, you will get status code for Activate, Resolved or Cancelled status in the plugin

    Check this article

    Plugin – usage of SetState and StateStateDynamicEntity message | Thomas - Microsoft Dynamics CRM (wordpress.com)

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

News and Announcements

Season of Giving Solutions is Here!

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

#1
SA-08121319-0 Profile Picture

SA-08121319-0 2

#1
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans