Loading
Put Employees First with Work.com
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create Conditional Visibility Rules for the Case Feed Component

          Create Conditional Visibility Rules for the Case Feed Component

          Create conditional visibility rules in the Service Console and Lightning App Builder for the case feed component of the Case Record page. The rules prevent service agents from seeing sensitive information in the Service Console when a case is about themselves.

          The solution requires the creation of a formula field for the Case object: CaseIsAboutLoginUser. The formula field indicates that the service agent user who views a case in the Service Console is the same employee that the case is about.

          The formula field assumes these default data model mappings for the Login User, Employee User, and Person Account.

          • The individual’s Employee user and Service Agent user have the same Employee Number (Employee.EmployeeNumber) for both personas due to the Create and Link Employees and Users process. This process results in a User.EmployeeNumber=Employee.EmployeeNumber configuration.
          • The Create Person Accounts for Employee Records process results in a Person Account with the same account number (Account.AccountNumber) as the Employee Number (Employee.EmployeeNumber). It creates an Employee.EmployeeNumber=Account.AccountNumber configuration.
          • These processes result in a configuration where the Person Account Number and the Employee Number are the same:

            User.EmployeeNumber=Account.AccountNumber

          To address the User.EmployeeNumber=Account.AccountNumber configuration, create a field label (CaseIsAboutLoginUser) and data model formula field ($User.EmployeeNumber = Account.AccountNumber) for the Case object. The field label and formula check if the current Login User’s User.EmployeeNumber is the same as the Account.AccountNumber for the case in the Service Console. When the numbers match, the case feed component isn’t visible to the user.

          To create conditional visibility rules, create the CaseIsAboutLoginUser field for the Case object, then disable the Feed component visibility for the agent user.

          Create the CaseIsAboutLoginUser for the Case Object

          1. From Setup, in the Quick Find box, enter Object Manger, and then select Object Manager.
          2. From the Object Manger, select Case > Field & Relationships > New.
            You see the New Custom Field page open. The multistep New Custom Field workflow initiates for you to create the CaseIsAboutLoginUser field.
          3. From step 1 of the workflow, select Formula as the Data Type, and then click Next.
            case_feed_sercuity_new_custom_field
          4. From step 2 of the workflow, select Checkbox as the Formula Return Type, then lick Next.
            case_feed_security_choose_output_type
          5. From step 3 of the workflow, Select Advanced Formula.
            1. In the text field, enter $User.EmployeeNumber=Account.AccountNumber.
            2. To confirm that there are no formula errors, click Check Syntax, then click Next.
              case_feed_security_advanced_formula
          6. From step 4 of the workflow, unselect Visible.
            1. Select Standard Platform User.
            2. Select either or both IT Agent and HR Service Agent, then click Next.
              case_feed_secuirty_establish
            3. Optional: From step 5 of the workflow, choose the page layouts to include the CaseIsAboutLoginUser field, and then click New.
              The CaseIsAboutLoginUser field doesn’t require exposure on any page layout because the Field Level Security is set in the previous step.
              case_feed_security_page_layouts

          Disable the Feed Component Visibility for the Agent User

          1. From Setup, in Quick Find box, enter Lightning App Builder, and then select Lightning App Builder.
          2. From the Lightning Pages menu, select your Case Record Page, and then click Edit.

            For HR Service Center, select HR Case Record Page Layout.

            For Employee Concierge (Agent Desk), select IT Case.

            Case Record Page
            You see the Case Record Page open in the Lightning App Builder.
          3. From the Case Record Page, click any component that you don’t want the agent user to see, and then proceed to the component attributes menu.
            For example, you can select Feed and then configure its settings.
            case_feed_security_feed_tab_builder
          4. From the Set Component Visibility dropdown, click + Add Filter.
          5. Set the filter with these configurations.
            • For Filter Type, select Record Field.
            • For Field, select CaseIsAboutLoginUser.
            • For Operator, select Equals.
            • For Value, select False.
            case_feed_security_feed_tab_builder
          6. Click Done, and save your updates. If you haven’t activated your record page, click Activate.
           
          Loading
          Salesforce Help | Article