Create an Object-Specific Quick Action
With object-specific actions, users can:
- Create records that have automatic relationships to other records.
- Make updates to specific records.
- Interact with records in ways that you define.
Quick actions share qualities with custom buttons and links, with a key difference: simplicity. They create a more streamlined experience between mobile and desktop. And action creation can be completely declarative.
Object-specific actions can update existing records and create ones that are automatically associated with related information. In the Recruiting app, set up an object-specific quick action to create a job application from a candidate record.
Create the Quick Action
From Setup, click Object Manager, then Candidate.
- Click Buttons, Links, and Actions.
- Click New Action and fill in the details.
- Action Type: Create a Record
- Target Object: Job Application
- Label:
New Job App
- Description:
Action to create a job application from a Candidate record. This description is not visible to users.
- Action Type: Create a Record
- Click Save.
Next, customize the action’s layout.
- Drag the Status field from the palette and drop it on the layout below, to the right of the Candidate field.
- Click Save.
Set a predefined value for the Stage field.
- Click New in the Predefined Field Values list on the action detail page.
- Select Stage from the Field Name dropdown.
- In the Specify New Field Value section, select New from the dropdown.
- Click Save.
Now, add the action to the Candidate page layout.
- While you’re still viewing Candidate in the Object Manager, click Page Layouts.
- Click next to Candidate Layout, then select Edit.
- Under Salesforce Mobile and Lightning Experience Actions, click the override the predefined actions link.
- Click Mobile & Lightning Actions in the palette.
- Drag the New Job App action to the Salesforce Mobile and Lightning Experience Actions section of the page layout and place it after POST.
- Click Save.
Test the Quick Action
Now that you’ve created a new action and customized its layout, test it.
- Click to open the App Launcher, then click Recruiting.
- Click the Candidates tab.
- Click New and create a new candidate record, enter a first and last name, and click Save.
- Refresh your browser and see the New Job App button on the newly created candidate record.
- Click New Job App.
- Click in the Position field and select + New Position.
You might have to scroll the window a little to find it.
- Enter a title and click Save, click Save again.
Navigate to the Job Applications tab and note that the job application you created is listed.
Your work creating a quick action and customizing page layouts gives the HR team a more streamlined user experience in the Recruiting app. But things can always get better. Next, let’s customize the Review page layout.