How to Update Records Using Quick Action in Salesforce

In our Salesforce org the Account management team needs to keep customer details up to date regularly. The team wanted an edit layout to update important fields such as Account Industry, phone, and website. So that, instead of opening the record in full edit mode, they can update information from this layout.

As a solution for this requirement, I created a quick action button on the Account record page. With this quick action, users can edit and update the important information of the record.

In this Salesforce tutorial, I will explain the method to create a quick action for updating records. Then we will update records using quick actions in Salesforce with the created action.

Update Records Using Quick Action in Salesforce

To update the object records using the quick action, first, we need to create a custom quick action. After this, we will deploy the quick action to the object record page to make it accessible to users to update records.

Create a Quick Action to Update Records in Salesforce

In this example, we will create a quick action on the Account object. Using this quick action, the user can update the Account’s Phone, Industry, and Website.

To create a quick action, navigate to the Setup page of Salesforce Lightning and click on the Object Manager tab.

How to update records using quick action in salesforce

In the Object Manager tab, select the object in which you want to create the quick action to update records. In this example, we will select the Account object.

How to update records using quick action in salesforce lightning

In the Account object setup, click on Buttons, Links, and Actions.

Update records using quick action in salesforce

In the Buttons, Links, and Actions window, click on the New Action button.

Update records using quick action in salesforce lightning

In this window, select the Action Type as Update a Record. If you want a custom label, then leave the Standard Label Type as None.

Enter the custom label for the quick action. After this, enter the description and Success Message and click on the Save button.

Update records using Quick Action in Salesforce

In the window, we will see the layout of the update record quick action. In this layout, drag and add the fields that you need to update through quick action.

After adding the required fields, click on the Save button.

Add fields to Quick Action in Salesforce

As we click on the Save, the update record quick action will be created. Now, we need to add the quick action to the object page layout.

Add Quick Action to Page Layout in Salesforce

To make the update record quick action accessible to the users, we need to add it to the Account object’s page layout.

Navigate to the Object Manager -> Select object ( Account) -> Page Layouts. From the list of page layouts, select the default page layout.

How to update record using quick action in salesforce lightning

In the page layout setup, click on the Mobile and Lightning Actions. From the action lists, drag and drop the quick action to the section Salesforce Mobile & Lightning Experience.

After this, click Save to apply the changes.

Update record Quick Action in Salesforce

With this, we have created a quick action and deployed it to the layout of the Account object.

Update Object Record Using Quick Action in Salesforce

Now, we will check the created quick action by updating the Account record using the Salesforce quick action.

To update the Account record using the quick action, navigate to the Salesforce Accounts tab and open an account record.

Update Object Record with quick action in Salesforce

In the Account record page, click on the quick action Update Main Info.

Salesforce update record quick action

In the quick action window, we can see the fields that we have added to the layout of the quick action. Here, update the information in the fields and click Save to update the record.

Salesforce Lightning Quick action to update records

As we click on the Save button, a success message will appear on the screen. We can view the updated field values in the record’s detail section.

Update Account with quick Action in Salesforce

This way, we can update records in Salesforce using a custom quick action.

Conclusion

In this Salesforce tutorial, we have learned how to create a quick action in Salesforce to update records. With this quick action, users can easily update important fields directly from the record page without going into edit mode.

By following the above steps, you can create a custom quick action to update the record details for any standard or custom object in your Salesforce environment.

You may also like to read:

live webinar

Data Cloud in Agentforce Data Library

In this live webinar, we will showcase how Salesforce AI Agents use business data and documents to provide intelligent responses using Agentforce Data Library and Salesforce Data Cloud.

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.