{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":7114,"path":"customer-service-management/r_BRIWCustomerService.md","title":"Business rules installed with Customer Service Management","bundle":null,"doc_type":null,"release":"australia","body":"\n# Business rules installed with Customer Service Management\n\nBusiness rules are added with activation of Customer Service Management.\n\nThe following table describes the business rules and their related tables that are added with Customer Service Management.\n\n<table id=\"table_jhr_czw_kt\"><thead><tr><th>\n\nBusiness rule\n\n</th><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nAccount query for customer\n\n</td><td>\n\nAccount \\[customer\\_account\\]\n\n</td><td>\n\nQueries the account for the customer contact.\n\n</td></tr><tr><td>\n\nAccount relationship display rule\n\n</td><td>\n\nAccount Relationship \\[account\\_relationship\\]\n\n</td><td>\n\nDisplays the correct values in the bi-directional diagram on the Account Relationship form.\n\n</td></tr><tr><td>\n\nAdd customer role to contacts\n\n</td><td>\n\nContact \\[customer\\_contact\\]\n\n</td><td>\n\nAdds the customer role \\(sn\\_customerservice.customer\\) to a customer contact if the contact has no assigned roles or if the user ID for the contact is set.\n\n</td></tr><tr><td>\n\nAdd snc external role to contacts\n\n</td><td>\n\nContact \\[customer\\_contact\\]\n\n</td><td>\n\nAdds the snc\\_external user role to each contact.\n\n</td></tr><tr><td>\n\nAdd Primary Contact to Asset Contact\n\n</td><td>\n\nAsset \\[alm\\_asset\\]\n\n</td><td>\n\nWhen an asset is assigned a new primary contact, the primary contact is added to the asset contact.\n\n</td></tr><tr><td>\n\nApprover query for customer\n\n</td><td>\n\nApproval \\[sysapproval\\_approver\\]\n\n</td><td>\n\nQueries the approver for a customer contact.\n\n</td></tr><tr><td>\n\nAsset query for customer\n\n</td><td>\n\nAsset \\[alm\\_asset\\]\n\n</td><td>\n\nQueries the assets for a customer contact.\n\n</td></tr><tr><td>\n\nAuto assessment business rule\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nTriggers a customer satisfaction survey when a case is set to **Closed**.\n\n</td></tr><tr><td>\n\nCase query for customer\n\n</td><td>\n\nCase \\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nQueries the cases for a customer contact.\n\n</td></tr><tr><td>\n\nCase display rule\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nA display business rule on the Case form which passes some values to the browser when a case is displayed.\n\n</td></tr><tr><td>\n\nChange Awaiting to Open\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nChanges the case state from **Awaiting Info** to **Open**.\n\n</td></tr><tr><td>\n\nCheck duplicate\n\n</td><td>\n\nAsset Contact \\[sn\\_customerservice\\_m2m\\_asset\\_contact\\]\n\n</td><td>\n\nChecks for duplicate records before creating a new asset contact.\n\n</td></tr><tr><td>\n\nCheck duplicate for responsibility\n\n</td><td>\n\nContact Relationship \\[sn\\_customerservice\\_contact\\_relationship\\]\n\n</td><td>\n\nChecks for duplicate responsibilities before creating a new contact relationship.\n\n</td></tr><tr><td>\n\nCheck duplicate for responsibility\n\n</td><td>\n\nAsset Contact \\[sn\\_customerservice\\_m2m\\_asset\\_contact\\]\n\n</td><td>\n\nChecks for duplicate responsibilities before creating a new asset contact.\n\n</td></tr><tr><td>\n\nCheck snc\\_external roles exist\n\n</td><td>\n\nContact \\[customer\\_contact\\]\n\n</td><td>\n\nChecks if the com.glide.security\\_schema plugin is activated.\n\n</td></tr><tr><td>\n\nContact query for customer\n\n</td><td>\n\nContact \\[customer\\_contact\\]\n\n</td><td>\n\nQueries the contacts for a customer.\n\n</td></tr><tr><td>\n\nContract query for customer\n\n</td><td>\n\nContract \\[ast\\_contract\\]\n\n</td><td>\n\nQueries the contracts for a customer.\n\n</td></tr><tr><td>\n\nCreate bi-direction relationship\n\n</td><td>\n\nAccount Relationship \\[account\\_relationship\\]\n\n</td><td>\n\nAfter an account relationship is created, this business rule creates the bi-directional account relationship record.\n\n</td></tr><tr><td>\n\nDelete Account Contacts and Assets\n\n</td><td>\n\nAccount Relationship \\[account\\_relationship\\]\n\n</td><td>\n\nWhen an account relationship is deleted, this business rule deletes the corresponding account and asset contacts.\n\n</td></tr><tr><td>\n\nDelete relationship type\n\n</td><td>\n\nlabel \\[account\\_relationship\\_type\\]\n\n</td><td>\n\nChecks to see if any relationship records are using a relationship type before that relationship type is deleted.\n\n</td></tr><tr><td>\n\nDelete responsibility definition\n\n</td><td>\n\nResponsibility Definition\\[sn\\_customerservice\\_responsibility\\_def\\]\n\n</td><td>\n\nChecks to see if any account team members are using a responsibility definition before that responsibility definition is deleted.\n\n</td></tr><tr><td>\n\nDisplay request message\n\n</td><td>\n\nRegistration Request \\[sn\\_customerservice\\_registration\\]\n\n</td><td>\n\nAfter registration request submittal, shows info message to user\n\n</td></tr><tr><td>\n\nDisplay rule\n\n</td><td>\n\nRegistration Request \\[sn\\_customerservice\\_registration\\]\n\n</td><td>\n\nShows message to remind users to enter a correct registration code\n\n</td></tr><tr><td>\n\nEntitlement query for customer\n\n</td><td>\n\nEntitlement \\[service\\_entitlement\\]\n\n</td><td>\n\nQueries the entitlements for a customer contact.\n\n</td></tr><tr><td>\n\nInsert Case Work Notes\n\n</td><td>\n\nAppointment \\[sn\\_customerservice\\_appointment\\]\n\n</td><td>\n\nUpdates the case work notes with the appointment details when an an appointment is created.\n\n</td></tr><tr><td>\n\nPopulate company for case\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nPopulates the **Company** field on the Case form based on the name entered in the **Contact** field.\n\n</td></tr><tr><td>\n\nSet First Response Time\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nWhen a case is created or updated, this rule sets the current time in the first\\_response\\_time field. Also used when a case is set to **Resolved** or **Awaiting Info** or when comments or close notes are added. **Note:** The first\\_response\\_time field is not used.\n\n</td></tr><tr><td>\n\nUpdate account based on reg code\n\n</td><td>\n\nRegistration Request\\[sn\\_customerservice\\_registration\\]\n\n</td><td>\n\nValidates the registration registration code and assigns the account associated with the registration code.\n\n</td></tr><tr><td>\n\nUpdate account relationship labels\n\n</td><td>\n\nAccount Relationship Type\\[sn\\_customerservice\\_account\\_relationship\\_type\\]\n\n</td><td>\n\nWhen the labels for an account relationship type are updated, this business rule updates all of the related account relationship records.\n\n</td></tr><tr><td>\n\nUpdate case entitlement on Close\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nUpdates the associated entitlement when the state of a case is set to **Closed**.\n\n</td></tr><tr><td>\n\nUpdate Case Work notes\n\n</td><td>\n\nAppointment\\[sn\\_customerservice\\_appointment\\]\n\n</td><td>\n\nAdds work notes to the case when an appointment for the case is updated.\n\n</td></tr><tr><td>\n\nUpdate Case Work Notes\n\n</td><td>\n\nKnowledge\\[kb\\_knowledge\\]\n\n</td><td>\n\nAdds work notes to the case when a knowledge article associated with the case gets updated.\n\n</td></tr><tr><td>\n\nUpdate Parent Case for new task\n\n</td><td>\n\nTask\\[sn\\_customerservice\\_task\\]\n\n</td><td>\n\nUpdates the case when a new case task is created.\n\n</td></tr><tr><td>\n\nUpdate Parent case for state change\n\n</td><td>\n\nTask\\[sn\\_customerservice\\_task\\]\n\n</td><td>\n\nUpdates the case when a new case task is changed.\n\n</td></tr><tr><td>\n\nUpdate relationship label\n\n</td><td>\n\nAccount Relationship \\[account\\_relationship\\]\n\n</td><td>\n\nUpdates the relationship labels for bi-directional account relationships.\n\n</td></tr><tr><td>\n\nUpdate User Task State\n\n</td><td>\n\nCase\\[sn\\_customerservice\\_case\\]\n\n</td><td>\n\nCalculates the work load for the agent based on the number of cases assigned to the agent. Also updates the last assigned time. This rule is used by the matching rule engine.\n\n</td></tr><tr><td>\n\nValidate registration\n\n</td><td>\n\nRegistration Request\\[sn\\_customerservice\\_registration\\]\n\n</td><td>\n\nChecks if the registration is valid based on the user’s email address. If the user exists in the system or a request has already been submitted and is in the pending state, the registration request is not allowed.\n\n</td></tr></tbody>\n</table>**Parent Topic:**[Components installed with Customer Service Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/r_InstalledWithCustomerService.md)\n\n"}}