Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

finding out which SLA item is attached to a particular case

(0) ShareShare
ReportReport
Posted on by 790

dear all

i do have one SLA defined in my system, this SLA contains more than 22 SLA items and number is increasing.

conditions in these SLA items is a bit complicated and in some scenarios, i find certain cases SLAs expiring but i dont know which SLA item is affecting (attached) my case.

i tried all combinations in advanced-find but with no luck.

any idea how to know for a certain case, which SLA item is attached to it?

thanks,

*This post is locked for comments

  • Ahmad Saud Profile Picture
    Ahmad Saud 790 on at
    RE: finding out which SLA item is attached to a particular case

    thanks Mr. Wei, but where is the SLA item name in the result?

  • Ahmad Saud Profile Picture
    Ahmad Saud 790 on at
    RE: finding out which SLA item is attached to a particular case

    Thanks Sunil, but still i cant find the SLA item name in this query.

  • Ahmad Saud Profile Picture
    Ahmad Saud 790 on at
    RE: finding out which SLA item is attached to a particular case

    Thanks a lot for your help Goutam

  • Verified answer
    gdas Profile Picture
    gdas 50,089 Moderator on at
    RE: finding out which SLA item is attached to a particular case

    Hi Ahmad ,

    Seems there is no relationship between SLAItesm and Case so its hard to show using advance find both Case and SLA Item fields. When you select case as parent entity you can not see the SLA Item entity and fields in the Add Column options in the Advanced Find view .

    So I tried to figure out to prepare the FetchXML first and then I execute it in XRMToolBox , FetchXML tester. Here is the Advanced find filter criteria which I choose . You need to select Case as parent and then under related entity you will find "Last SLA applied" , which will give you the list with the case and SLA which are associated. Make sure below filter criteria will give you all the cases , If you have large number of case then it will take time to retrieve all the case  so you can add another condition case so that you can get the cases which you need.

    7026.fetchXML.png

    Download the FetchXML and add the "SLA Items" entity attributes like  "Name"  in the FetchXML under linkentity of "SLA Items". 

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
    <entity name="incident">
    <attribute name="title" />
    <attribute name="ticketnumber" />
    <attribute name="createdon" />
    <attribute name="caseorigincode" />
    <attribute name="incidentid" />
    <order attribute="title" descending="false" />
    <link-entity name="sla" from="slaid" to="slainvokedid" alias="ag">
    <attribute name="slatype" />
    <attribute name="name" />
    <attribute name="businesshoursid" />
    <link-entity name="slaitem" from="slaid" to="slaid" alias="bx">
    <attribute name="name" />
    <filter type="and">
    <condition attribute="name" operator="not-null" />
    </filter>
    </link-entity>
    </link-entity>
    </entity>
    </fetch>

    Once you prepare the FetchXML you may run using Dynamics CRM Report . Here I have execute the fetchXML using XRMToolBox , FetchXML tester  utility and see the results.

    FetchXML Request using XRMToolBox , FetchXML tester.

    7026.fetchXML.png

    FEtchXMLTester.png

    Hope this helps.


  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: finding out which SLA item is attached to a particular case

    Hi,

    You can use below method to find out which case is associated with certain SLA item.

    Now i want to find all case that contain First response KPI.

    5483.4.PNG

    Result

    58752.2.PNG

    Now i want to find all cases that does not contain First response KPI

    27413.3.PNG

    5483.4.PNG

  • Sunil Narnaware Profile Picture
    Sunil Narnaware 25 on at
    RE: finding out which SLA item is attached to a particular case

    Another Option is Select SLA KPI Instance and select the record in Regarding (in my case I have selected the Case)

    KPIs.png

    The result gives me all the KPI instances, I selected the Noncompliant one as I have assigned SLA 2 (SLA item) to Resolve By KPI

    KPIs.png

    Which will give me the SLA item which is succeeded 

    KIPI-Instance-Job-View.png

    Hope this helps.

    Thanks

    Sunil

  • Sunil Narnaware Profile Picture
    Sunil Narnaware 25 on at
    RE: finding out which SLA item is attached to a particular case

    Hi Ahmad,

    As per user guide, here is what I found.

    'You can add multiple SLA items and arrange them in the order that works for you. For any given KPI, only the first SLA item that matches the conditions in the Applicable When section is applied.', which means if the first applicable condition is met in 5th SLA item, then CRM won't proceed further.

    So need to figure out the SLA items conditions and the sequence in which you have arranged all your 22 SLA items.

    SLA items are run in the background as child processes. Here is what I did in Advanced find. I am considering the SLA is setup for Case entity.

    SLA-2-Result.png

    This would give you all the SLA items.

    AF_2D00_Process_2D00_SLA_2D00_Result.png

    But then I was trying to drill down further to know exactly which SLA item affected the Case, couldn't find it.

    But when I opened each result of SLA items from above Advanced Find Query and went to process sessions, I was able to find out which SLA item actually affected the case. See below screenshots.

    4075.SLA1.png

    SLA-2-Result.png

    Thanks

    Sunil

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans