Recently I discussed how to add a ribbon custom action to a project in Visual Studio (see “Extending the SharePoint 2013 Ribbon Using Visual Studio--Part 1: Creating a custom action for task lists”). Now, we will install a custom app in a site, making the ribbon custom action available for testing in Task lists.
Before the app can be installed in SharePoint, you must have access both to a development site and to an App Catalog provisioned in SharePoint 2013. If you do not yet have a development site, you can obtain a 30-day free trial with Microsoft Office 365.
After you have your development site up and running, follow these steps to provision the App Catalog:
Note: you must have administrator rights to provision the App Catalog
- From , in the ribbon, click the Admin tab (see Figure 1).
- Click the SharePoint link (see Figure 2).
- In the SharePoint Admin Center, click the apps link (see Figure 3).
- In the apps center, click App Catalog (see Figure 4).
- Select the radio button for Create a new app catalog site (see Figure 5).
- Click OK.
- In the Create App Catalog form, fill in the choices with information appropriate to your organization.
- Click OK.
You will then be returned to the SharePoint admin center. It will take some time for the App Catalog to provision, and you will see a waiting icon next to the URL. When the provisioning is complete, click the now active link for the app catalog. In the site collection properties dialog, click the link again.
Now that you have a working App Catalog you can upload your app and make it available to your users. Follow these steps to upload your app:
- From your App Catalog home page, click Apps for SharePoint (see Figure 6).
- In the Apps for SharePoint library, click upload.
- From the dialog that opens, browse to the published .app file for your app.
- Click OK.
You will see your new app in the Apps for SharePoint library. Now that the app is available in your catalog, follow these steps to install the app in another site where users can access it.
- Navigate to your site.
- Click Site Contents.
- On the Site Contents page, click add an app (see Figure 7).
- On the Your Apps page, click From Your Organization (see Figure 8).
- Click the app tile to install.