Try It Out: Add a Quick Action to Your Lightning Page

A global quick action called “New Delivery” for this Lightning Page is included in the sample app package you downloaded at the start of this chapter. We just need to call it in the XML.

  1. If it’s not already open, re-open the Deliveries.flexipage file in your XML editor.
  2. Add this action codeblock to the end of the XML, just before the </FlexiPage> tag.
    This codeblock associates the New Delivery action with the Lightning Page.
  3. Save the Deliveries.flexipage file.
Now, when users open the Deliveries app from the Salesforce1 menu, the Lightning Page will have an action bar that they can tap to access this action.

Example

Your full codeblock should look like this:

The XML code is ready. Now it’s time to deploy it, and the rest of the Deliveries package, into your organization.