function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Akshay Mourya 6Akshay Mourya 6 

How can i add custom fileds in Case Details

Hi All,

I have created few custom fields and I want to add those custom filed into case details. Please refer to the attached screenshot where i want to show those custom fiedls. Thanks.

Case Page left side
AnudeepAnudeep (Salesforce Developers) 
Hi Akshay, 

The fields in the record details component are controlled by the page layout. Open object manager and find the case object. Open the Page Layouts tab, and edit the one that is used for this record type/profile. From there, you should be able to add any field you've created. 

Reference: https://trailblazers.salesforce.com/answers?id=9063A000000tDfrQAE

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Akshay Mourya 6Akshay Mourya 6
Hi Anudeep,
Thanks for the response.

I want to add the four custom fields in the case detail section that is visible in the case of the details mail page. How can I move those fields to the case details section. Can you please provide the step. I will follow the same.

Please see the attached screenshotUser-added image.
 
Akshay Mourya 6Akshay Mourya 6
Hi Anudeep, Thanks for the response. I want to add the four custom fields in the case detail section that is visible in the case of the details mail page. How can I move those fields to the case details section. Can you please provide the step. I will follow the same. Thanks, Akshay
AnudeepAnudeep (Salesforce Developers) 
Hi Akshay, 

Clear steps are listed in this help article (https://help.salesforce.com/articleView?id=sf.lightning_page_components.htm&type=5). See section 
Related Record Component

To change the displayed fields for the Related Record component, you need to configure different lookup fields, and customize the associated action in Setup. If you don’t see the action or can’t modify it, create one. Also, ensure that the lookup field to the related object is included on the page layout of the main object. Otherwise, the component can’t be refreshed.

Start by creating the Quick Actions: Setup > Object Manager > Case > Buttons, Links and Actions. Create a new Action of type Update a Record. I recommend using a Label like "RR - [RT Name]", eg, "RR - Product Support" to keep track. On the layout editor, select the fields you want to display for that record type. Repeat for each Record Type. See this post (https://salesforce.stackexchange.com/questions/273539/selecting-fields-on-a-related-record-component-of-lightning-page) to learn more

Also, see section 
Add Related Record Components with Lightning App Builder in this Module (https://trailhead.salesforce.com/content/learn/modules/service_trans/service_trans_layout

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you