Create a Lightning App and Custom Objects
In this project, we help Muenzpraeger's Home for Wayward Cats, a group that fosters and places cats in their furr-ever homes. We use Einstein Vision to analyze cat photos and identify the breed of each cat. Then we build a process to post in Chatter to a breed interest group whenever a cat of that breed is available for adoption.
Here’s what you’ll do.
- Create custom objects and a Lightning app for Muenzpraeger's Home for Wayward Cats.
- Create an Einstein Platform account.
- Install an unmanaged package in your org.
- Create an Apex class and Lightning components.
- Create, train and test an Einstein Vision dataset.
- Create public Chatter groups and use Process Builder to post to a group.
- Test your process.
First we add some custom objects to your Trailhead Playground (TP) org and create a Lightning app for Muenzpraeger's Home for Wayward Cats. One object represents cats that can be adopted, and the other object represents people who are interested in adopting a cat.
- From the Object Manager in Setup, click Create | Custom Object.
- Fill in the details.
- Label:
Cat
- Plural Label:
Cats
- Object Name:
Cat
- Label:
- Select Launch New Custom Tab Wizard after saving this custom object.
- Leave the rest of the values as they are, and click Save.
- Select a Tab Style of your choice (sorry, no cats there yet).
- Click Next, then Next again.
- Choose the custom apps that you want the new custom tab to be available in. We haven’t created our custom app yet, so deselect Include Tab.
- Click Save.
- From the Object Manager in Setup, click Create | Custom Object.
- Fill in the details.
- Label:
Interested Person
- Plural Label:
Interested People
- Object Name:
Interested_Person
- Label:
- Select Launch New Custom Tab Wizard after saving this custom object.
- Click Save.
- Select a Tab Style of your choice (may we suggest People?).
- Click Next, then Next again.
- Deselect Include Tab.
- Click Save.
- From the Home tab in Setup, enter
App
in the Quick Find box, then select App Manager. - Click New Lightning App.
- Walk through the Lightning App Wizard, creating an app with these parameters.
App Name
Cat Rescue
Developer Name
Cat_Rescue
Description
Track cats and cat adopters.
Image
Your choice
Primary hex color value
Leave as-is
App options
Leave as-is
Utility Items
Don’t add one
Select items
Cats and Interested People
Assigned to user profile
System Administrator
- Click Save & Finish to exit the wizard.
Even though Muenzpraeger's Home for Wayward Cats is overflowing with cats (and people who are interested in adopting them), their Salesforce org is a little empty at the moment. Let’s fix that by entering some data.
- From the App Launcher (
), find and open Cat Rescue.
- Select the Cats tab and click New.
- For Cat Name, enter
Elvis
. - Click Save & New.
- For Cat Name, enter
Amanda
. - Click Save & New.
- For Cat Name, enter
Marissa
. - Click Save.
- Now select the Interested People tab and click New.
- For Interested Person Name, enter
Tim
. - Click Save & New.
- For Interested Person Name, enter
Mark
. - Click Save & New.
- For Interested Person Name, enter
Sue
. - Click Save.
Great! Now we have an app and some data. Next we get ready to match the cats with the people by capturing information about cat breeds.
Rights of ALBERT EINSTEIN are used with permission of The Hebrew University of Jerusalem. Represented exclusively by Greenlight.