Blog1 : Resolve Case in MS CRM using Power Automate

Resolve Case in MS CRM using Power Automate

Problem Statement => If you try to resolve case directly in Power Automate by setting the “Status = Resolved” and “Status Reason = Problem Solved” then you may encounter an error in the Power Automate step and it won’t allow you to resolve case this way. Lets discuss how we can achieve this using Power Automate.

Solution => In MS CRM whenever a case is resolved manually by clicking Resolve Case Button present on ribbon of Case form then in the background CRM creates a record of Case Resolution entity. So if you create this record for the case you want to resolve from PA then from PA you can resolve the case.

  1. To resolve case in MS CRM using Power Automate you need to create the record of Case Resolutions table.
  2. Select Resolution Type as Closed or whatever you want to specify at time of case resolution depending on business needs
  3. Pass the caseid of case which you want to resolve
Figure1 : Create record of Case Resolution entity in Power Automate

Just by doing this you will be able to resolve case and case will become read only once it is resolved.

In Power Automate you can use OOB unbound action “CloseIncident” to resolve a case.

Below is the unbound action ‘CloseIncident’ with description of its necessary fields.

To use the navigation property, we will have to do it in a different way. Let us see how.

  1. We need to provide the Action Name as => Select Custom Value and in expression use trim function with Unbound action name => trim(‘CloseIncident’)
  2. Action Parameter we need to pass Json object with the required parameters.
{
  "IncidentResolution": {
    "subject": "Test Resolution",
    "resolutiontypecode": 5,
    "incidentid@odata.bind": "incidents(CaseId)",
    "statuscode": 1
  },
  "Status": 5
}

3. Just by calling an Unbound Action ‘CloseIncident’ in this manner will resolve your case.

Leave a comment

Design a site like this with WordPress.com
Get started