Importing a Mobile Application into a New Environment

Introduction

This document describes how we import a new Mobile Application from a Sandbox into a Live Org or from one Sandbox to another (e.g. dev Sandbox to UAT Sandbox).  Note that these instructions are based on Change Sets and hence are not applicable to Developer Edition Orgs.

Versions: Since package 1.0.30

In this article:

Step 1 – Mobile Application Import
  1. Check Inbound Change Set
  2. Installation of Change Set
Step 2 – Installation of Application
Step 3 – Dynamic Version Checks/Permission Set Creation
  1. Navigate to your Dynamic Version
  2. Check MetaData
  3. Create Permission Set
  4. Assign Custom Permissions
  5. Assign Standard Permissions
  6. Run Application
  7. Double Import

Step 1 – Mobile Application Import

  1. Check Inbound Change Set

    Figure 1 shows an example of a new application that is about to be installed. This must contain:

    • Document: You exported application document.
    • Document Digest: If you are using a later package you will also have a .dig (digest) document
    • VisualForce pages: Your application page (here ExtSeedApp_001), application cache page (here ExtSeedAppCache_001) and the MobileCaddy recovery page.
    • Static Resources: Your application bundle (here ExtSeedApp_001), MobileCaddy Utilities (here MC_Resource_v1_1_1), MockCordova3v1 and cordovaSF3v1.
      Your deployment set may additionally and optionally contain:

    • General Salesforce configuration for your application, e.g. Objects, Fields etc
    • Any custom code developed for your application. This may include any MobileCaddy Restriction Classes and test methods.
  2. Installation of Change Set

    1. Click the Deploy button on your change set on the following page, as seen in Figure 2:
      Success:
      You will see the following on a successful install.

Step 2 – Installation of Application

  1. To install the new application, click on the startup tab and click the Create/Install New Mobile Application button.

    You will be presented with an input screen. Enter:

    Input Name Description of Input Value
    Application Name This is a short description of your application.
    Description

    (Required field)

    This is a description of your application.

    Device App Name If you are using ‘Bizcaddy’ from either the Play Store or the Apple Store this would be ‘BIZ001’.If you are using ‘Fieldcaddy’ this would be ‘BIZ002’.

    If you are using a custom device application then this will be the app name written into that device app.

    Set ‘User Provisioning’ The recommended value is ‘All Users’.
    Select the ‘OS Version Provisioning’. The recommended value is ‘Any OS Version’.
    Set the Template Type This will be ‘Seed Application’ for the import to detect the imported document.
    ‘Template’ picklist From the ‘Template’ picklist, choose the document that you imported previously.

  2. Next click ‘Save’. You will be presented with a screen similar to the following.
  3. After a short time you will receive a screen indicating the application has been successfully installed together with an ‘Open Application’ button. Clicking this button will show the standard application screen.

Video: A successful application installation

Step 3 – Dynamic Version Checks / Permission Set Creation

  1. Navigate to your Dynamic Version

    1. Select the ‘Mobile Application’ tab and click on the Mobile Application that you just installed.
    2. Once the Mobile Application detail is displayed, scroll down until you find the related list of Dynamic Versions.
    3. Click on the Dynamic Version name – the detail page will be displayed.

      The buttons that we need to use are highlighted in the image.
  2. Check MetaData

    1. Click on the ‘Check MetaData’ button. This initiates a detailed scan of the underlying metadata and will report any issues – e.g. if any necessary Salesforce configuration is incorrect or missing. On success, the following will be displayed.
  3. Create Permission Set

    1. The majority of MobileCaddy installations leverage Permission Sets to assign Application Permissions to users. Click the ‘Create/Update Permission Set’ button.
    2. Select ‘Create New Permission Set’ and complete the fields underneath. Click the ‘Create/Update Permission Set’ button when you are satisfied that the fields are complete. You will be taken to the standard permission set detail page.
  4. Assign Custom Permissions

    1. From here you may click the ‘Manage Assignments’ button and assign the permission set to those users who will use this MobileCaddy application. The following screen shows a standard user being given the access necessary.
  5. Assign Standard Permissions

    1. In addition to assigning the custom permission set (created and assigned above), users must have access to the standard MobileCaddy internal objects. This is achieved by assigning the user the MobileCaddy permission set. Go to the ‘Setup’ page and search for and select ‘Permission Sets’.
    2. Click on the ‘MobileCaddy User (Generic)’ link. Assign your MobileCaddy application users to this permission set in the same way as you did for the customer permission set above.
  6. Run Application

    The application is now ready to be run up.

  7. Double Import

    One common error is for a user to install an application twice. This is not permitted. Once the application has been installed, you may add Dynamic Versions to it (see below) but you may not install the application twice. Attempting to will cause a failure which may be seen under Setup Apex Jobs.