Adding PSA Custom Lightning Components to a Lightning Record Page
For information about creating Lightning record pages and using Lightning components, see "Lightning App Builder" in the Salesforce Help. However, we have provided some examples to create and use custom Lightning components, record pages, and layouts.
Adding a Custom Lightning Component to a Lightning Record Page
To add a custom Lightning component to a page:
- Using Lightning App Builder, create a Lightning record page for the relevant object and select the page template you want to use.
- Drag the component on to the relevant part of the Lightning record page layout.
- Use the properties pane to configure the Lightning component.
- Save and activate the page.
Adding Resourcing Components to a Resource Request Lightning Record Page
To create a Lightning record page for selecting resources and performing actions:
- Using Lightning App Builder, create a Lightning record page for the Resource Request object and give it a suitable name, such as Resource Request Lightning Record Page.
- Select the Header and Right Sidebar page template.
- Drag the standard Highlights Panel component on to the Header part of the page layout.
- Assign the Resource Request Compact Layout as the primary compact layout.
- Drag the standard Tabs component on to the main region of the page layout.
- Drag the standard Record Detail and Related List - Single components on to the Details and Related tabs.
- Using the properties pane, add a custom tab called “Resources” to the Tabs component.
- Set the Resources tab as the default tab.
- Drag the custom PSA Resourcing component on to the Resources tab.
- Drag the custom PSA Resource Filter Lightning component on to the Sidebar part of the page layout.
- Save and activate the Lightning record page.
Creating your own Compact Layout
You can create your own compact layout if the Resource Request Compact Layout does not contain the fields you require.
To create your own compact layout:
- Navigate to Setup | Objects and Fields | Object Manager.
- Click Resource Request.
- Select Compact Layouts and click New.
- Type a name and label for the compact layout.
- Move the fields you want to be displayed on the compact layout into the Selected Fields list and click Save.
- On the Compact Layout Details page for the new compact layout, click Compact Layout Assignment.
- Click Edit Assignment.
- Select your new compact layout from the Primary Compact Layout drop-down list.
- Click Save.