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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Routing Rule Set Firing on Save

(0) ShareShare
ReportReport
Posted on by 188

We just had a problem where Users were getting an Access Denied error when resolving a newly created case.  After researching I found that when the users Selected "Save" The routing rules would fire and move it to its appropriate queue. However, most of the time when a User Creates the case  it is to create and resolve in the same sitting.  However, when the routing rule fires they are forced to go into the queue and pick it before they can resolve it.   We have a few different options for saving on the ribbon  "Save and Close" , "Save and Route", and "Save".  Based on the delineation that I see I would assume that the only time routing rules should fire is when hitting "Save and Route".  I check for custom workflows to see if we had anything that fired them with no success.  Does anyone know why It's firing on save or where I would need to go to make a configuration change to keep from this happening? 

I have the same question (0)
  • Suggested answer
    Francisco Murtinheira Profile Picture
    on at
    RE: Routing Rule Set Firing on Save

    Hello,

    For this situation I would advise performing a simple test, such as disabling all routing rules and try to save a Case, to understand if it's the routing rules moving the case or other logic.

    After this, if you conclude that it's the routing rules moving the case, then could you share the logic behind the affected rule ?

    I tried this on my trial environment with a simple routing rule, and the rule only works when I press Save&Route, so if it's indeed a problem with your rule I am curious about the logic used.

  • Jerett Crumbley Profile Picture
    188 on at
    RE: Routing Rule Set Firing on Save

    I did a similar test to ensure it was the Routing rules firing. I turned on Auditing and I saw the progression of the case action and seen it actually route to a queue. to verify that there wasn't something else moving cases I changed the ownership of the routing rules to myself, then performed the same test and saw the name change to myself. So It is without a doubt the routing rules firing.  I don't mean to buck I just need to make sure my understanding is correct.  If the rules are firing when selecting save rather than save and route that would point to a problem with what ever firing the rules, not really the rules themselves right?  The rules themselves are correct in how they route... there are just times when we don't want them to fire, which is why we would want to be able to "Save" Rather than "Save and Route"  Does this help?

  • Francisco Murtinheira Profile Picture
    on at
    RE: Routing Rule Set Firing on Save

    Do you know if your Save button has been customized in any way ?

    Also I would advise you to open a case with the Dynamics support team, since this is not expected behavior.

  • Jerett Crumbley Profile Picture
    188 on at
    RE: Routing Rule Set Firing on Save

    I don't see where the ribbon workbench has been installed. To my Knowledge, no, I don't know of any customizations to the save button. We are working on Submitting a ticket for the issue now.

  • Suggested answer
    Jerett Crumbley Profile Picture
    188 on at
    RE: Routing Rule Set Firing on Save

    Ok so after a ticket with Microsoft and a lot of time in between they finally got an answer back to us.  Short answer: There is a OOB Field "Route Case" that by default is not placed on the form and defaulted to yes.  WHEN PLACED INTO THE FORM the logic will first look to see if the field is on the form, If so when you select save it will AUTOMATICALLY change it to no. When you select yes it will prompt to use the routing rule set and the field will remain yes then subsequently fire the routing rules.     Long answer:

    I have met with engineering team member to investigate what is happening behind the scenes in your environment and analyzed the behavior you are observing. Good news is that, we have an update explaining, why the behavior of the field “Route Case” having he value of YES instead of NO and how to mitigate for your situation. The solution initially provided is to add Route Case to your form is still valid. Here is the explanation from our analysis.

    1. Firstly, by default OOB the “Route Case” field is not added and visible to the Case Form and default value is set to YES. The reason for that, is to enable routing when cases are created automatically from activities. This part is by design.

    2. When we create a case using the Form manually through web UI and click Save button, the OOB web resource checks whether the field Route Case is present in the form or not. If it is present, then it will set to NO as it is manually created Case by user interaction. It means the case is not routed yet. If it is not present in the form, we will not change the default value. The “Save & Route” button is similar, it will first run the Save operation for new case (similar to Save) and then pops up a window asking for confirmation to route.

    In your situation, there are multiple forms on the Case entity as shown below in your development environment. We didn’t see the Route Case field added to form “Case – PC3” form. Because of that, the value is YES for that field for cases we create manually also. Mitigation is to add that field using form editor. You can either keep that field shown in the form or mobile or not according to your needs. Save and publish that changes. Then try creating a case and hit Save button. This will set the value for Route Case to NO. If you can also try the Save & Route for a new case created.

    Note: We have already added the field in the support instance and tried to create new case and it is setting “Route Case” value correctly to NO for Save operation.

    Note: The above logic is only applicable when case is created using form from web UI. If cases are created through SDK or Import way, you should set the Route Case value to NO otherwise, the default value YES is applicable. Here is the link explaining that with a snippet shown below.

    docs.microsoft.com/.../create-rules-automatically-route-cases [docs.microsoft.com]

    I do see you have processes defined checking for Route Case value equal to NO. Since the field is not in the form, the value is left with default value YES and it was proceeding with the routing rules execution and crating queue items. Hope the above explanation provides clarity of why it is happening and how to mitigate the issue you observe in your environment.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 58

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans