Isv PKG
Isv PKG
Isv PKG
ISVforce Workbook
Table of Contents
ISVforce Workbook.............................................................................................................................1
i
Table of Contents
ii
ISVforce Workbook
ISVforce Workbook
The ISVforce workbook is a quick introduction to developing and distributing apps on the Force.com platform. The workbook
takes you through the process of signing up for orgs, developing a simple application, and packaging it for distribution. You'll
then install and test a beta version of the app, and finally you'll create a released version of your app, so that anyone can install
it in their Salesforce organization.
Note: This workbook streamlines the ISVforce lifecycle so that you can complete it in an hour or two. Therefore,
some real-life steps are missing, such as signing up for the Salesforce Partner Program, licensing your app, and
additional options such as creating a free trial. However, the basic application lifecycle remains the same. When you've
completed this workbook and ready to create your killer app, see the Quick Start in the ISVforce Guide, which takes
you through the full process.
Supported Browsers
Browser Comments
Microsoft® Internet Explorer® versions 7, 8, If you use Internet Explorer, we recommend using the latest version. Apply
9, and 10 all Microsoft software updates. Note these restrictions.
• The Compatibility View feature in Internet Explorer is not supported.
• The Metro version of Internet Explorer 10 is not supported.
• Internet Explorer 10 is not supported for the Service Cloud console.
For configuration recommendations, see “Configuring Internet Explorer” in
the online help.
Mozilla® Firefox®, most recent stable version Salesforce.com makes every effort to test and support the most recent version
of Firefox. For configuration recommendations, see “Configuring Firefox” in
the online help.
Google Chrome™, most recent stable version Google Chrome applies updates automatically; salesforce.com makes every
effort to test and support the most recent version. There are no configuration
recommendations for Chrome. Chrome is not supported for the Console tab
or the Add Google Doc to Salesforce browser button.
Google Chrome Frame™ plug-in for Supported plug-in for Internet Explorer 6 and 7 only. Google Chrome Frame
Microsoft® Internet Explorer® 6 and 7 applies updates automatically; Salesforce supports only the most recent version.
For configuration recommendations, see “Installing Google Chrome Frame
for Microsoft® Internet Explorer®” in the online help. Chrome Frame plug-in
is not supported for the Service Cloud console or Forecasts.
Apple® Safari® version 5.1.x on Mac OS X There are no configuration recommendations for Safari. Apple Safari on iOS
is not supported. Safari is not supported for the Salesforce CRM Call Center
CTI Toolkit or the Service Cloud console.
Tell Me More....
At the end of each step, there is an optional Tell Me More section. If you like to do things quickly, move on to the next step.
However, if you're a smell-the-roses type, there's a lot of useful information here.
• For an introduction to developing on Force.com, see http://developer.force.com/workbook.
1
ISVforce Workbook
• To learn more about Force.com and to access a rich set of resources, visit Developer Force at
http://developer.force.com.
2
Tutorial #1: Develop an App
Note: The Username field is in the form of an email address, but it does not have to be a valid email address. In
most cases, it's best to change the username to something descriptive, as you just did. How you name your orgs
can help you distinguish them later.
5. Read and then select the checkbox for the Master Subscription Agreement.
6. Enter the Captcha words shown and click Submit Registration.
7. In a moment you'll receive an email with a login link. Click the link and change your password.
After you develop and package your app, you'll need another org for testing purposes, your “test org”. You'll use this org to
install the app and use it, just as a customer would.
Tell Me More....
When you sign up for a DE org, you also become part of the Force.com community, which includes forums, webinars, and
other exclusive content. http://developer.force.com
3
Tutorial #1: Develop an App
1. Your browser should already be open, log into your dev org (this is the first DE org you created).
2. Click Your Name > Setup in the upper right corner, and then click Create > Objects in the sidebar menu.
3. Click New Custom Object to display the New Custom Object wizard.
4. For the Label and Plural Label enter Merchandise, leave all other values as they are.
To display information about the Merchandise object, you associate the object with a tab.
As soon as you create the tab, you can see it at the top of the screen.
4
Tutorial #1: Develop an App
6. Leave the Default Landing Tab set to the Home tab, and click Next.
7. Select the Visible checkbox to make the application available to all user profiles.
8. Click Save to create the Warehouse application.
9. The app now appears in the Force.com app menu in the upper right corner of the page. Click it.
Tell Me More....
If it seems like you just created an object within a container, within another container, you did. And you're about to put all of
that into another container! What's with all these containers and what do they do?
• A tab is a container for things you want to display on the same page, such as a chart, a table, or the Merchandise object
you created.
• An app is a container for tabs that appear next to each other. Currently your app has only two tabs, Home and Merchandise,
but it could have many more.
• A package is a container for components. Usually a package contains an app that can be installed in an org. You haven't
created a package yet, you'll do that in the next tutorial.
5
Tutorial #1: Develop an App
Development Summary
In this tutorial you signed up for two Developer Edition (DE) organizations, a dev org and a test org. You used your dev org
to create a simple Warehouse app that contains a Merchandise tab. The Merchandise tab displays information about the
Merchandise custom object.
6
Tutorial #2: Package and Upload Your App
1. Navigate to Your Name > Setup > Create > Packages, and then click New.
2. In the Package Name field enter Warehouse Components and then click Save.
3. On the Package Detail page click Add.
4. Select the checkbox next to your Warehouse app and click Add to Package.
Tell Me More....
The Components tab displays the components in your package. When you clicked Add to Package for your app, did you
notice that your Merchandise object and tab were automatically added? Other dependent files, such as the page layout are also
added. The framework automatically detects dependent components and adds then to the package.
7
Tutorial #2: Package and Upload Your App
2. In the Developer Settings list, click Edit and on the following page click Continue.
3. In the Namespace Prefix field, enter a 1-15 character alphanumeric ID and then click Check Availability. Repeat this
step until you have a unique namespace.
Note: You might be wondering if the characters that make up your namespace are important. Not really. Try a
shorthand for your company name or something easy to remember. The only people that see the namespace are
developers.
4. In the Package to be managed field choose your Warehouse Components package and then click Review Your
Selections.
5. Review the information on the page and then click Save.
Tell Me More....
Within the underlying code, your namespace is prepended to all components that are packaged from your dev org. This allows
your package and its contents to be distinguished from those of other developers, and ensures your exclusive control of all
packaged components.
Congratulations, you've uploaded an app! Your app isn't available to the general public, but it can be accessed through an
install link. You'll install the app in the next step.
Tell Me More....
The purpose of a beta is for testing, and so it can only be installed in a test org, Developer Edition, or sandbox. A sandbox is
a replica of your customer's org that allows them to test things before they commit to using them. DE orgs don't have a
sandbox, but if you have a sandbox in another org and want to install your app in it, you must replace the initial portion of the
Installation URL with http://test.salesforce.com.
1. Log out of your dev org by clicking Your Name > Logout.
2. Click the Installation URL link you received in your email.
3. On the login page, enter the Username and Password of your test org.
4. On the Package Installation Details page, click Continue.
8
Tutorial #2: Package and Upload Your App
Note: If you get a warning that you can't install this package because it was created in this org, you accidentally
developed in your test org. It's OK, just remember from now on that your test org is really your dev org and vice
versa.
5. Click Next.
6. On the Security Level page, Grant access to all users and click Next.
7. Click Install.
8. Click Deploy Now and then Deploy.
9. Once the installation completes, you can select your app from the app picker in the upper right corner.
10. Let's test the app and see if it works. Click the Merchandise tab and add then click New to create a new record.
11. In the Merchandise Name field enter Wee Jet and then click Save.
Your app installs easily and you can add the name for Merchandise records, your beta test has passed! Next you'll upload a
released version of this package.
Tell Me More....
Your app doesn't do much, in fact it only has a single field. The name field is called a standard field because it is included
automatically with every custom object you create. You can also create custom fields to further define your object.
9
Tutorial #3: Upload a Released Version
1. If you've been following along non-stop, you're probably still logged into your test org. Log out and then log into your dev
org.
2. Notice in the upper right corner there's a link that says Developing Warehouse Components, version 1.0. Click that link
to go directly to the Package Detail page.
Tell Me More....
Just as before, you'll receive an email with a login link when the package is ready.
Tell Me More....
If you created some Merchandise items, the data is preserved in a .zip file so you can import it later. Importing that data is
beyond the scope of this workbook, but your customers will be happy to know their data is saved.
10
Tutorial #3: Upload a Released Version
1. Click the login link you received for the released version.
2. Install the released app in the same way you installed the beta in Step 4: Install and Test the Beta.
3. Once the app installs, choose the Warehouse app from the drop-down menu and then click the Merchandise tab.
4. Click Add to make sure it works.
What Next?
If you'd like more of an introduction to development on Force.com, try the Force.com Workbook. The Merchandise object
in this tutorial is a stripped down version of the Merchandise object in the Force.com Workbook, so you already have a head
start. As you complete the tutorials in the Force.com Workbook, periodically package and upload components to create new
versions of the app.
If you're ready to create your killer app, see the Quick Start in the ISVforce Guide, which takes you through the process of
signing up for the Salesforce Partner Program, setting up licensing for your app, and registering for the AppExchange.
11