case assignment rules salesforce not working

Case Assignment rule ignored when case is created in Flow

Hello I have an interesting situation. We are using Cases in our organization, and have the case assignment rule set up to assign a case to a Queue called Project Team when Case equals type = SoW Request. 

In the settings, Send email to queue is checked, and a template I've been using for the past two months for alerts has been added (screenshot below). The template is active.  

I wanted to automate a case creation via Flow, when a record in a custom object (called Assignments) was marked to Won. So when an Assignment is marked Won, it triggers the Flow to pull some information from Assignments object and puts them in a Case, and creates a new Case in that specific type.   

The flow fires off correctly and creates the case with the fields I set, however, the assignment rule is IGNORED and the email is not automatically sent.  

As a test, I created the case manually (not via this automation), and picked type SoW Request, and created it manually via New Case button in Salesforce, and the case assignment rule worked fine. The Project Team was assigned and an email was received.   

Have any of you worked with a flow that creates a case and had the case assignment rule work? Below I'm also sending the logs of the Flow Debug log, which shows that the rule works and created the case as I wanted. I need the flow to take into consideration the case assignment rule.   

flow-works.png

  #Cases ","contentType":"entity","entity":{"id":"","name":"Cases","type":"TOPIC","photoUrl":null,"description":null}}"> #Cases   #Salesforce Administrator ","contentType":"entity","entity":{"id":"","name":"Salesforce Administrator","type":"TOPIC","photoUrl":null,"description":null}}"> #Salesforce Administrator     #Flows ","contentType":"entity","entity":{"id":"","name":"Flows","type":"TOPIC","photoUrl":null,"description":null}}"> #Flows

  • Clasificar por más útil
  • Clasificar por fecha

case assignment rules salesforce not working

Hi Natalia,

There is no standard way to invoke the assignment rules automatically from Flows and we have an open Idea against the same.

https://ideas.salesforce.com/s/idea/a0B8W00000GdlCMUAZ/process-builder-evaluate-assignment-rules-for-new-records

But, there is workaround where we can call the Apex Class to invoke the Assignment Rules for the newly created Case records by passing the Ids of the created Case record to the class.

public class invokeCaseAssignmentRules

@InvocableMethod

public static void caseAssgnmntRules(List<Id> caseIds)

Database.DMLOptions dmlOption = new Database.DMLOptions();

dmlOption.assignmentRuleHeader.useDefaultRule= true;

Case caseCreated=[select id from Case where id in :caseIds];

caseCreated.setOptions(dmlOption);

update caseCreated;

Thanks & Regards

Mukesh Katoch

  • Lista con viñetas
  • Lista numerada
  • Agregar vínculo
  • Bloque de código
  • Insertar imagen
  • Adjuntar archivos

Case Assignment Rules in Salesforce

A case can be assigned in various ways, either manually or in accordance with assignment criteria.

In this Salesforce tutorial, we will learn the case assignment rule in Salesforce . In addition to this, we will also see step-by-step how to create case assignment rules in salesforce Lightning and Salesforce Classic.

Table of Contents

Case assignment in Salesforce is the process of allocating a case to a certain team or teammate within an organization.

However, in this article, we will only focus on the case assignment rule in Salesforce. A case assignment rule in Salesforce is a process that automatically assigns cases to the appropriate team or teammate based on specific criteria.

This helps manage the case management procedure, speed up responses, and boost customer satisfaction. It also enhances general effectiveness and customer service.

Read: How to remove new event button from case object in salesforce

How to create case assignment rule in Salesforce

Here are the steps to create a case assignment rule in Salesforce Lightning:

1. Log in to your Salesforce account and go to  Setup . In the Quick Find box, type  Assignment Rules , then select  Case Assignment Rules located under Services.

How to create case assignment rule in Salesforce Lightning

2.  Click  New  to create a new case assignment rule.

How to create case assignment rule in Salesforce Lightning Example

3. Enter a  Rule Name  for the case rule. Here, I create the Rule “High Priority Case” . Activate the rule by clicking the Activate button. 

Activating this rule will deactivate the current case assignment rule automatically, as at one time, only one rule is activated. Click  Save  to save the rule.

create case assignment rule in Salesforce Lightning

4. Select the Rule Name and open it to add case assignment rules. Click New to create multiple rule entries under this rule. Set the Rule Order in which these rule entries will be processed.

Define the criteria that will trigger the rule. This can include fields like case origin, cause status, and cause type. Here, I set the criteria for “Case Priority equal to High” .

Specify the user or queue to whom we assign the case when it meets the criteria. Here, I assign it to the “User”. Optionally, we can also choose the email template for the case assignment rule.

In addition, we can select predefined case teams and replace existing predefined case teams. Click  Save  to save the case assignment rule.

5.  Test the rule by creating a test case that meets the criteria and ensures that it is assigned correctly.

Note: Always check the checkbox “Assign using active assignment rule” to assign newly created case according to case assignment rule.

How to create case assignment rule using Salesforce Lightning

6. Once our case assignment rule is created and tested, Salesforce will automatically assign incoming cases based on the criteria we’ve defined.

create case assignment rule using Salesforce Lightning

With this, we learned to  create the case assignment rule in Salesforce .

Read How to Enable Email to Case in Salesforce

In conclusion, Salesforce’s case assignment rules let us automatically allocate incoming cases to the right sales team members or queues based on predefined criteria.

Both Salesforce Classic and Salesforce Lightning provide a simple procedure to create a case assignment rule which will help our sales team work more effectively and efficiently.

You may also like to read the following Salesforce tutorials.

  • How to Delete a Case in Salesforce
  • How to Close a Case in Salesforce
  • How to Create a Case in Salesforce

Bijay Kumar

I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us .

SimplySfdc.com

Thursday, may 1, 2014, why salesforce assignment rule is not working.

case assignment rules salesforce not working

  • Lead Assignment Rules — Specify how leads are assigned to users or queues as they are created manually, captured from the web, or imported via the lead import wizards.
  • Case Assignment Rules — Determine how cases are assigned to users or put into queues as they are created manually, using Web-to-Case, Email-to-Case, On-Demand Email-to-Case, the Self-Service portal, the Customer Portal, Outlook, or Lotus Notes.

case assignment rules salesforce not working

  • Validation rules
  • Assignment rules
  • Auto-response rules
  • Workflow rules (with immediate actions)
  • Escalation rules
  • Case Assignment Rules not working
  • Managing Assignment Rules
  • Setting Up Assignment Rules
  • Trigger Assignment Rules with Data Loader
  • Assign using active assignment rule

No comments:

Post a comment, page-level ad.

Dive into the Summer ’24 Release

As an admin, you can help your organization succeed by staying up to date with the latest Salesforce releases and getting familiar with product enhancements.

Check out the Summer ’24 release notes for a list of new features and available updates.

Summer_24_Desktop_yr_V2.png

Did you find this helpful?

Help us enhance your experience.

banner footer image

Set the option 'Assign using active assignment rules' to true, only when a Case or Lead is created

Company Logo

Cookie Consent Manager

General information, required cookies, functional cookies, advertising cookies.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings. Privacy Statement

Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.

Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.

Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.

Cookie List

IMAGES

  1. SimplySfdc.com: Salesforce: Case Assignment Rules not working

    case assignment rules salesforce not working

  2. Salesforce: Case Assignment rules not working when I use "Email Message: To Address"

    case assignment rules salesforce not working

  3. SimplySfdc.com: Salesforce: Case Assignment Rules not working

    case assignment rules salesforce not working

  4. Case Assignment Rules in Salesforce

    case assignment rules salesforce not working

  5. Create Case Queues and Assignment Rules

    case assignment rules salesforce not working

  6. Tutorial 21 : Case Assignment Rules in Salesforce

    case assignment rules salesforce not working

VIDEO

  1. How do I create a case in Salesforce?

  2. The Who? What? Where? When? Of Salesforce Case Escalation

  3. Salesforce ServiceCloud lightning Case management

  4. How To Close Case in Salesforce

  5. Fix Issues Caused by a Null Value in a Flow || Flow Troubleshooting

  6. How to Use Lead Assignment Rules with Queues in Salesforce

COMMENTS

  1. Case or Lead Assignment Rules fail to set the Owner

    Publish Date: Jul 6, 2021. Description. A recently created or updated Case or Lead Assignment Rule isn't setting the Owner on new or edited Case or Lead records that appear to perfectly match the rule's criteria or formula conditions, but ownership is not being assigned. Resolution. Be sure the Case or Lead Assignment Rule is active:

  2. Salesforce: Case Assignment Rules not working

    To force Case assignment rules, select Default under Case Assignment Checkbox and unselect 'Show on edit page'. This means end-users won't see any option to turn off case assignment rule when creating and editing a case. If both 'Show on edit page' and Default options are chosen, the assignment checkbox is displayed and is checked by default.

  3. Salesforce

    Support Settings: Checked Notify Default Case Owner but that sends the generic email when no assignment rule matches. But in case of matching with case assignment rule no email. Case Creation Template (chosen) Case Assigned Template (chosen) As I am on sandbox so I enabled these settings too: Email->Deliverability->Access level-> All Email.

  4. Create Case Queues and Assignment Rules

    From Service Setup, enter Case Assignment Rules in the Quick Find box and select Case Assignment Rules . Click New and enter the rule details. Select the Active checkbox to make this the active case assignment rule. Click Save . Add a rule entry that assigns Product Support cases to the Product Support Tier 1 queue.

  5. Cases created from Experience Sites do not trigger Case Assignment Rules

    You may also want to upvote and comment on the following idea: Case assignment rules don't fire on the new community. Note: The Case Assignment Checkbox was available prior to Winter '19 release in sites that use the Salesforce Tabs + Visualforce template. The checkbox was removed after Winter '19 release as this was determined as not working ...

  6. Run Case Assignment Rule from Apex

    The problem arises when your app needs to insert the Case from Apex and wants to trigger assignment rules. Using this script, a Case will be inserted but assignment rules will not be triggered as there is no such field "Assign using active assignment rules" on Case. //Instance of case. Case newCase = new Case(Status = 'New') ; //Inserting a Case.

  7. Email-to-Case Best Practices: Case Assignment Rules ...

    When you set up Email-to-case, you can take those emails and turn them automatically to Case records in Salesforce, send auto-replies, distribute them to your support team, and take other automated actions. These will save support teams a lot of energy creating Case records and managing them appropriately. Instead, you have the chance to free ...

  8. "Case transferred to you." email is sen

    Order: 1, Criteria type formula with "NOT(ISNEW())" , "Do Not Reassign Owner" - checked; Order: 2, Criteria type formula with "ISNEW()" , under "Select the user or queue to assign the case to" choose the Queue created above; Create a Case with "Assign using active assignment rule" checked. Result: Default "Case transferred to you." email is sent

  9. Cases created from Salesforce Community not triggering assignment rules

    When a customer creates a case via SF community, it does not seem to trigger our assignment rules. It assigns it to the person submitting the cases. I've already ensured that the case page layout for community users has the "Case Assignment Checkbox" is set to "Default" but the problem continues to persist. Any guidance or help would be much ...

  10. Case Assignment Rules not working for Custom Buttons

    I am trying to automate the assignment of case teams for internal cases, my sales operations team and the sales engineering teams both use cases for requests. For Sales Operations, case requests primarily come in through custom buttons that I have built on the relevant objects (Leads, Accounts, Opportunities, and CPQ Quotes).

  11. Case Assignment rule ignored when

    The flow fires off correctly and creates the case with the fields I set, however, the assignment rule is IGNORED and the email is not automatically sent. As a test, I created the case manually (not via this automation), and picked type SoW Request, and created it manually via New Case button in Salesforce, and the case assignment rule worked fine.

  12. Assignment rule does not fire on Cases created through Email-to-Case

    The assignment rule will not fire because the 'Case Owner' field on 'Routing Address ' under Email-to-Case has User or Queue selected and this will override the Default Case Owner field that's specified on the Support Settings page and in the assignment rule. Resolution. If the Case Owner field on Routing Address is left blank then the ...

  13. Case Management Best Practice Guide

    Explore this Help & Training article to learn how the combination of case rules and queues can help you prioritize, distribute, assign, respond to, and escalate case records. • Set Up Assignment Rules Assignment rules define how the case is triaged and can be routed to a specific user or queue based on your requirements. Review this Help ...

  14. Case Assignment Rules in Salesforce

    Here are the steps to create a case assignment rule in Salesforce Lightning: 1. Log in to your Salesforce account and go to Setup. In the Quick Find box, type Assignment Rules, then select Case Assignment Rules located under Services. 2. Click New to create a new case assignment rule. 3.

  15. Why Salesforce assignment rule is not working?

    Here a few steps to troubleshoot: 1. Check the assignment rule is Active. Only one assignment rule can be active at one time in both Case and Lead. 2. Try to create the record manually in the Salesforce web user interface. Check if the record is assigned to the correct user/queue and make sure checkbox Assign using active assignment rule is ...

  16. Case Assignment Rules cause permissions error for User, but Case is

    Our Salesforce system has a private OWD for the Case object, with access opened up via Owner-Based Sharing Rules, Case Teams & the Role Hierarchy. ... find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Create a free Team. Teams. ... (i.e. they won't have access to the case after the assignment rules run) - JustinF.

  17. Set the option 'Assign using active assignment rules' to ...

    7. Click the 'Layout Properties' button on the palette and disable the 'Show on edit page' and 'Select by default' Case Assignment Check-box and click OK, then click Save. 4. Test and confirm that when a user creates a new case/lead, the 'Assign using active assignment rules' checkbox is set to true. Save the case/lead.

  18. Create Case assignment rule does not fire from action

    I wrote the assignment rule where Case Status = New and added the email template. Everything works fine when case is created from the cases list view. But I have an action button on Accounts page named "Create a Case" when I create the case from here the assignment rule does not fire.

  19. Case assignment rule does not fire from Community page using global

    Go to layout Properties and make sure the default is checked for Case Assignment Checkbox.If it still doesn't work, check if off, save, then check it on and save it again. Share Improve this answer