Salesforce Quick Actions


In this blog post, I am going to explain salesforce action. Actions enable users to do more in Salesforce and in Salesforce1, the Lightning experience depends on the chatter settings. You can create an action and add them to the Chatter publisher on the home page, on the Chatter tab, in Chatter groups, and on record detail pages.  In Salesforce Classic, actions appear in the Chatter publisher. In Lightning Experience, actions appear in different areas of the user interface, depending on the action’s type. In Salesforce1, actions appear in the action bar, its associated action menu, and as list-item actions.

Action Categories

Actions have the different type of categories

Standard actions

Standard actions are actions that are included automatically when Chatter is enabled: Post, File, Link, Poll, and, in organizations that use, Thanks, Announcements are default actions.

Default actions

Default actions are Salesforce predefined actions to get you and your users started using actions in your organization. Add default actions to publisher layouts to make them available to your users in the full Salesforce site and the action bar in Salesforce1.

Mobile smart actions

Mobile smart actions are a set of preconfigured actions, just like default actions, and are supported on the same list of objects. However, they appear in pre-Winter ’14 organizations and are displayed only in Salesforce1.Mobile smart actions are populated with all your organization’s required fields on the relevant object, regardless of how many fields there are.Mobile smart actions don’t appear in the full Salesforce site, regardless of which page layouts you add them to; they appear only to users in Salesforce1.

Custom Actions

Custom actions are actions that you create and customize yourself, such as Create a Record, Send Email, or Log a Call actions. They can also invoke Lightning components, Visualforce pages, or canvas apps with functionality that you define.

Productivity Actions

Productivity actions are predefined by Salesforce and are attached to a limited set of objects. You can’t edit or delete productivity actions.The actions include Send Email, Log a Call, Map, View Website, and Read News.

Type of Actions

Within the categories of actions, you can have different types of actions, depending on their function.

  • Create actions let users create records.
  • Send email actions available only on cases, give users access to a simplified version of the Case Feed Email action on Salesforce1
  • Log call actions let users record the details of phone calls or other customer interactions.
  • Question actions enable users to ask and search for questions about the records that they’re working with.
  • Update actions users make changes to a record.

Steps to define Quick action

Now it’s time to define the quick action. defining quick action contains the below steps.

  1. Enable Actions in the Chatter Publisher
  2. Enable feed tracking for the objects for which you want to make actions available.
  3.  Enable actions in the publisher if you want to see both standard actions and non-standard actions in the Chatter publisher.
  4.  Optionally, enable feed updates for related records to display feed items on a record detail page when related records are created.
  5.  Create object-specific actions or global actions.
  6.  Customize the action layout with the fields that you want users to see when they use the action.
  7.  Add the actions to page layouts or global publisher layouts.

1. Global Actions 

Let’s create a global action that allows users to create an order from chatter.Global actions let users do tasks such as creating records or recording call details directly from the publisher on the Home tab, the Chatter tab, the action bar on the Salesforce1 feed, and Chatter groups.  You can also add global create actions to record detail pages.  Global actions enable users to create object records, but the new record has no relationship with other records.

  1. From Setup, enter Actions in the Quick Find box, then select Global Actions.
  2. Click New Action.
  3. For Action Type, leave Create a Record selected.
  4. For Target Object, select Order.
  5. Enter Label as “New Order”
  6. On Success Message Enter “Order is successfully created “

After click on Save page will redirect to action layout which allows users to customize action layouts as shown below. action layouts are similar to page layout where you can add fields to layouts. add the fields as shown below and click on save.

Predefined field values

Predefined field values will populate the values with predefined values on the action. Setting up predefined values for certain fields on actions can increase your mobile users.  Go to global action New Order which we created. you can see related predefined values.In the Predefined Field Values related list, click New and add fields as shown below.

Adding to Global Publisher Layout

Global publisher layouts determine which actions appear in the publisher in various pages throughout Salesforce, including the Home tab, Chatter tab, and Chatter group detail pages in the full site, as well as the action bar and action menu in Salesforce1. Global publisher layouts can include only global actions. Go to publisher layout edit and add the global action as shown below

Now you can able to see global action on chatter feed as shown below


2. Object-Specific Quick Actions

Object-specific actions let users quickly create or update records, log calls, send emails, and more, in the context of a particular object.You create object-specific actions in the context of the object. object-specific create actions create records that are automatically associated with related records. For example, you add an object-specific action on the Account object that creates contacts. If a user creates a contact with that action on the detail page for the Acme account, that new contact is automatically associated with Acme.Object-specific update actions make it easy for users to edit records. You can define the fields that are available for update.Let’s assume that you wanted to create a Competitor from the account feed. We are going to create a quick action on the account.

Create an Object-Specific Action

Go to Account Object -> go to Buttons, Links, and Actions and click New Action and create an Action as shown below

Add an Action to Account Page Layout

After creating an action you need to add to the page layout to appear in the feed. Go to Account Page and add the action as shown below.Finally, you can see the Action on feed as shown below.