Try It Out: Create an Invoice Action

In this step, we’ll create the Invoice action that adds the delivery record.
  1. From the object management settings for custom objects, click Invoice.
  2. Scroll down to the Buttons, Links, and Actions related list and click New Action.
  3. In the Action Type drop-down list, select Create a Record.
  4. In the Target Object drop-down list, select Delivery.
  5. In the Label field, enter Create Delivery.
    The action name defaults to Create_Delivery. This is name by which the action is referenced by the API.
    Create new action
  6. Click Save.
  7. After you save the action, the page layout editor appears. Drag the Invoice, Order Number, and Owner fields to the page layout.
  8. Click Save.
    Action page layout editor

Now that we’ve created the action, we’ll add the code to the Shipify Web application that’s running on Heroku.