Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Case Resolution Data

Posted on by 115

Hi All, 

I want to use the text that is placed in the 'Resolution' and 'Remarks' fields from the Case Resolution entity as part of a workflow when a case is closed. However, I can't seam to get to the related entity (Case Resolution) that holds that data. It does not show up as an entity that can run a workflow, or a related entity if you run the workflow against a case. 

Does anyone have any ideas that could help me resolve this particular problem? 

Thanks in advance. 

Will

*This post is locked for comments

  • Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Case Resolution Data

    Could you share the screenshots of workflow steps where this is being called? if possible please share the screenshot of set properties screen.

  • Mark Muskin Profile Picture
    Mark Muskin 45 on at
    RE: Case Resolution Data

    Thank Kokulan! That got me closer but now I'm getting the following exception:

    The following errors were encountered while processing the workflow tree:

    'DynamicActivity': The private implementation of activity '1: DynamicActivity' has the following validation error:   Incorrect value specified for the 'ActivityType' property of the Interop activity 'CustomActivityStep16'.  The value of this property must be a System.Type that inherits from System.Workflow.ComponentModel.Activity.

    Unhandled exception:

    Exception type: System.Activities.InvalidWorkflowException

    Message: The following errors were encountered while processing the workflow tree:

    'DynamicActivity': The private implementation of activity '1: DynamicActivity' has the following validation error:   Incorrect value specified for the 'ActivityType' property of the Interop activity 'CustomActivityStep16'.  The value of this property must be a System.Type that inherits from System.Workflow.ComponentModel.Activity.

      at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)

      at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)

      at System.Activities.WorkflowApplication.EnsureInitialized()

      at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)

      at System.Activities.WorkflowApplication.InternalRun(TimeSpan timeout, Boolean isUserRun)

      at System.Activities.WorkflowApplication.Run()

      at Microsoft.Crm.Workflow.ActivityHost.StartWorkflowExecution(Activity workflow, ICommonWorkflowContext context)

      at Microsoft.Crm.Workflow.ActivityHostBase.StartWorkflow(ICommonWorkflowContext context, Activity preLoadedActivity)

    -- End stack trace --

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Case Resolution Data

    Hi

    You have to call the step called : IncidentGetResolution and after this step, you will be able to access the values of the resolution activity.

    8510.ScreenClip-_5B00_240_5D00_.png

    You have to pass the case to the step as shown below

    1411.ScreenClip-_5B00_242_5D00_.png

    After this step, you should be able to use the resolution text in any step, the example below uses in an email body

    ScreenClip-_5B00_243_5D00_.png

    Hope this helps

  • Mark Muskin Profile Picture
    Mark Muskin 45 on at
    RE: Case Resolution Data

    Hey Everyone,

    I've been hitting my head on the wall, I've installed the mentioned plugin by Andrew (Thank you, I think ) but I can't seem to figure out how to put it into action and grab the resolutions from the cases so that they can be seen in the case entity and used in workflow emails.

    Thanks in advance!

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Case Resolution Data

    Long story short, you can't do it without code. Or you can get that toolkit Andrew suggested and use a custom workflow activity that's available there - he already did the heavylifting (code) for you.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Case Resolution Data

    There is a 1:N relationship between case and case resolution. See below:

    incident_5F00_incidentresolution_5F00_relationship.png

  • Steady Profile Picture
    Steady 115 on at
    RE: Case Resolution Data

    Hi, I understand CRM at a customise level, but not code. What type of relationship would I create in the Case Entity? Logically, it would be a 1:1 relationship, but of course there's no such thing. Is it a N:N?

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Case Resolution Data

    You can create a relationship between Cases and Case Resolutions to retrieve data, but if you want to trap the event of the closure and get the data of the resolution, you would need to create a plugin that would run on the Close Message of the Case (incident) entity.

    From the plugin code, you can get the incident resolution entity, and either get or set the values that you need.

    To take a look at sample plugin code for this particular scenario, see the following blog article:
    https://nishantrana.me/2015/04/02/plugin-when-a-case-incident-is-resolved-in-crm-2013/

    I think that you can also use the Workflow toolkit that deals with those particular scenarios.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Case Resolution Data

    Hello Will,

    You can use my Workflow Toolkit for that purpose. It contains step that can return you that information - github.com/.../v1.2.0.0

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans