AgileApps Support Wiki Pre Release

Difference between revisions of "Package Items"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 165: Line 165:
!                                              Added if New !! Updated  !! Deleted if Old
!                                              Added if New !! Updated  !! Deleted if Old
|-
|-
| [[Business Rules]]                  || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Business Rules]]                  || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Custom Form Actions]]              || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Custom Form Actions]]              || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Document Templates]]              || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Document Templates]]              || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Email Templates]]                  || ✔ || '''N''' || '''N'''
| [[Email Templates]]                  || ✔ || '''N''' || '''N'''
|-
|-
| [[External Data Source]] definitions || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[External Data Source]] definitions || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Fields]]                          || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Fields]]                          || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Field Audit Log Settings]]        || ✔ || ✔ || n/a
| [[Field Audit Log Settings]]        || ✔ || ✔ || n/a
|-
|-
| [[Field Scripts]]                    || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Field Scripts]]                    || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Forms]]                            || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Forms]]                            || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Form Scripts]]                    || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Form Scripts]]                    || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Indexes]]                          || ✔ || ✔ || Y
| [[Indexes]]                          || ✔ || ✔ || Y
|-
|-
| [[Layout Rules]]                    || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Layout Rules]]                    || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Macros]]                          || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Macros]]                          || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Processes]]                        || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Processes]]                        || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Quick Text]] *                    || ✔ || '''N'''  || '''N'''
| [[Quick Text]] *                    || ✔ || '''N'''  || '''N'''
Line 197: Line 197:
| [[Record Locators]]                  || ✔ || ✔ || n/a
| [[Record Locators]]                  || ✔ || ✔ || n/a
|-
|-
| [[Subforms]]                        || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Subforms]]                        || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Validations]]                      || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Validations]]                      || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[View]] definitions **              || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[View]] definitions **              || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Web Forms]]                        || ✔ || ✔ || '''N'''
| [[Web Forms]]                        || ✔ || ✔ || '''N'''
Line 215: Line 215:
!                                  Selected !! or if Referenced by !! Added if New !! Updated !! Deleted if Old
!                                  Selected !! or if Referenced by !! Added if New !! Updated !! Deleted if Old
|-
|-
| [[Application]]                || ✔ || [[Package Dependency]] || ✔ || ✔ || [[Overwrite Previous Package|Packaging option]]
| [[Application]]                || ✔ || [[Package Dependency]] || ✔ || ✔ || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Classes]]                    || &#10004; || [[Business Rule]]<br>[[Macro]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Classes]]                    || &#10004; || [[Business Rule]]<br>[[Macro]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Customer Satisfaction Surveys]] ||      || [[ServiceDesk]] || &#10004; || '''N''' || n/a
| [[Customer Satisfaction Surveys]] ||      || [[ServiceDesk]] || &#10004; || '''N''' || n/a
|-
|-
| [[Case Analytics Dashboard]]  ||          || [[ServiceDesk]] || &#10004; || n/a || [[Overwrite Previous Package|Packaging option]]
| [[Case Analytics Dashboard]]  ||          || [[ServiceDesk]] || &#10004; || n/a || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Dashboards]]                ||          || if visible to all, a [[Role]], or a [[Team]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Dashboards]]                ||          || if visible to all, a [[Role]], or a [[Team]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Global Picklists]]          ||          || Object [[Field]] || &#10004; || &#10004; || '''N'''
| [[Global Picklists]]          ||          || Object [[Field]] || &#10004; || &#10004; || '''N'''
Line 235: Line 235:
| [[Knowledge Base]] categories  || colspan="5" align="center"|''not included''
| [[Knowledge Base]] categories  || colspan="5" align="center"|''not included''
|-
|-
| [[Mapping Profile]]s          || &#10004; ||              || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Mapping Profile]]s          || &#10004; ||              || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Object]] definitions  || &#10004; || [[Lookup]] field<br>[[Rollup Summary Field]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Object]] definitions  || &#10004; || [[Lookup]] field<br>[[Rollup Summary Field]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| Object records                ||          || [[Package Data]] class  || colspan="3"| as defined by the class
| Object records                ||          || [[Package Data]] class  || colspan="3"| as defined by the class
|-
|-
| [[Pages]]                      || &#10004; || [[Custom Form Action]]<br>[[Dashboard]]<br>[[Site]]<br>[[Web Tab]]  || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Pages]]                      || &#10004; || [[Custom Form Action]]<br>[[Dashboard]]<br>[[Site]]<br>[[Web Tab]]  || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Reports]]                    || &#10004; || [[Dashboard]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Reports]]                    || &#10004; || [[Dashboard]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Roles]]                      ||          || [[Application]]<br>[[Process]]<br>[[Team Data Sharing Policy]] || &#10004; || [[Packages#Overriding or Merging Roles|Subscriber choice]] || '''N'''
| [[Roles]]                      ||          || [[Application]]<br>[[Process]]<br>[[Team Data Sharing Policy]] || &#10004; || [[Packages#Overriding or Merging Roles|Subscriber choice]] || '''N'''
|-
|-
| [[Sites]]                      || &#10004; || [[Application]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Sites]]                      || &#10004; || [[Application]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[SLAs]]                      || colspan="5" align="center"|''not included''
| [[SLAs]]                      || colspan="5" align="center"|''not included''
|-
|-
| [[Static Resources]]          || &#10004; ||              || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Static Resources]]          || &#10004; ||              || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Tab Preferences]]            ||          || [[Role]]      || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Tab Preferences]]            ||          || [[Role]]      || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Team]] definitions          || &#10004; || [[Business Rule]]<br>[[Macro]]<br>[[Process]]<br>[[Team Data Sharing Policy]] || &#10004; || '''N''' || '''N'''
| [[Team]] definitions          || &#10004; || [[Business Rule]]<br>[[Macro]]<br>[[Process]]<br>[[Team Data Sharing Policy]] || &#10004; || '''N''' || '''N'''
|-
|-
| Team-object Business Rules    ||  ||  [[Team]]                || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| Team-object Business Rules    ||  ||  [[Team]]                || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Team Data Sharing Policies]] || &#10004; ||                  || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Team Data Sharing Policies]] || &#10004; ||                  || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Translation Workbench]]      || &#10004; ||                  || &#10004; || &#10004; || n/a
| [[Translation Workbench]]      || &#10004; ||                  || &#10004; || &#10004; || n/a
Line 265: Line 265:
| [[Users Object]] *            || &#10004; ||                  || &#10004; || &#10004; || n/a
| [[Users Object]] *            || &#10004; ||                  || &#10004; || &#10004; || n/a
|-
|-
| User-object Business Rules    ||          || [[Users Object]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| User-object Business Rules    ||          || [[Users Object]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| User-object Fields            ||          || [[Users Object]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| User-object Fields            ||          || [[Users Object]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[View Preferences]]          ||          ||  [[Role]]    || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[View Preferences]]          ||          ||  [[Role]]    || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|-
|-
| [[Web Services]] <!--**-->    || &#10004; || [[Business Rule]]<br>[[External Data Source]]<br>[[External Lookup]]<br>[[Process]]  || &#10004; || &#10004; || '''N'''  
| [[Web Services]] <!--**-->    || &#10004; || [[Business Rule]]<br>[[External Data Source]]<br>[[External Lookup]]<br>[[Process]]  || &#10004; || &#10004; || '''N'''  
|-
|-
| [[Web Tabs]]                  || &#10004; || [[Application]] || &#10004; || &#10004; || [[Overwrite Previous Package|Packaging option]]
| [[Web Tabs]]                  || &#10004; || [[Application]] || &#10004; || &#10004; || [[Overwrite Previous Package|Package Overwrite option]]
|}
|}



Revision as of 18:43, 25 June 2015

Platform elements that are included in a Package are known as package items.

This page details when items are included in the package, when they are installed in the target system, and when old items that have been removed from the source system are deleted from the target system, as well.

The information provided here is the foundation for the companion article: Choosing a Deployment Strategy for Development Systems

Standard Dependencies

When an item is selected for packaging, dependent elements are automatically included. Items that are related, but upon which the selected item does not actually depend are excluded by default--although they can generally be selected manually, if desired.

Platform Element Dependent Elements
  • Application
  • Excludes Reports
    Reports can be individually selected. Reports on an object are not automatically included.
  • Excludes data
    Data is not included automatically. Java code can be written to create Package Data classes that add selected records during packaging, and that take the records out when the package is installed.
  • Classes (includes
    user-created classes)
  • The Business Hours Calendar used in processes.
    (An installed calendar is never overwritten, so installers are free to modify the calendar to suit their purposes.)
  • Teams and Roles used in Process tasks
  • Sites
  • Includes Teams and Roles involved
  • Includes Child Teams if the Include Child Teams option is selected for that team
  • Includes localized labels and items


  • Web Tabs

Special Dependencies

When the following elements are added to a package, the listed items are added as dependencies:

Team Data Sharing Policies
Roles and Teams included as dependencies
  • If the Include Child Teams checkbox is enabled, the child teams of the selected teams in the Data Sharing Policy are added as dependencies
Objects in a Master-Detail relationship

Notepad.png

Note:
The "Master-Detail relationship" option on a Lookup field has been deprecated. This section is provided for legacy objects that have a Lookup field for which that option has been selected.
Learn more: Master-Detail relationships

  • If a Detail object is added to a Package, the Master object is added (automatically) as a dependent object
  • If a Master object is added to a Package and if that Master object includes any Rollup Summary Fields, then the Detail object is added (automatically) as a dependent object
  • When a Tenant installs a Package, the Rollup Summary Fields limit defined in Manage Tenant Capabilities is honored
  • If the limit is exceeded, the installation process will stop and cannot proceed
  • In order to complete the installation, delete existing Rollup Summary Fields to reduce the total number to within the defined limit
  • After packaging, do not add or remove any Master-Detail relationships; doing so may cause unexpected results and/or loss of data

Items that are Never Packaged

These platform elements are never added to a package. Customizations made by the subscriber remain intact.

How Package Items are Applied

The principles that follow summarize the behavior of package items at installation time. Detailed tables list the behavior for individual items, following the summary.

Principles
  • New items in the Package are added to the subscriber's system, while items with the same ID are replaced, or updated.
Note:
All aspects of an object (fields and forms, validations, and so on) are given a Globally Unique ID or GUID. Those IDs are preserved when the package is installed, which allows existing items to be replaced while new items are added. (When the overwrite option is chosen, items on the target system that do not have a matching GUID in the package are deleted.)
  • If the subscriber created a new platform element with the same name as an item included in the package, the subscriber gets an error. (The error occurs immediately after they select the package. Installation is not allowed to proceed.)
  • With few exceptions, modified items in the Package replace the versions that came from a previous Package.
    The exceptions are:
  • Global Picklists -- Subscribers are expected to have added items and modified labels, so they are left intact.
  • Email Templates -- Subscribers are expected to have customized email templates with their return address, signature text, and possibly logo images, so they are left intact.
  • Roles -- During installation, the subscriber has the option of merging or overwriting roles that are included in the package.

Notepad.png

Note: Items that were added to the target system are never deleted. Items are deleted only when: (1) They were previously installed from the source system, (2) They were subsequently removed from that system, and (3) The Overwrite Previous Package option was chosen when the package was created.

Object Aspects

This table describes the behavior of individual Object Aspects.

Object Aspect Installed when...
Added if New Updated Deleted if Old
Business Rules Package Overwrite option
Custom Form Actions Package Overwrite option
Document Templates Package Overwrite option
Email Templates N N
External Data Source definitions Package Overwrite option
Fields Package Overwrite option
Field Audit Log Settings n/a
Field Scripts Package Overwrite option
Forms Package Overwrite option
Form Scripts Package Overwrite option
Indexes Y
Layout Rules Package Overwrite option
Macros Package Overwrite option
Processes Package Overwrite option
Quick Text * N N
Record Locators n/a
Subforms Package Overwrite option
Validations Package Overwrite option
View definitions ** Package Overwrite option
Web Forms N
* Applies only to Cases object in the ServiceDesk application.
** View definitions are included only when they are visible to all, or to an included Role. Private views are not included.
Application Elements

This table describes the behavior of other platform elements that go into an application.

Application Element Included when Installed when
Selected or if Referenced by Added if New Updated Deleted if Old
Application Package Dependency Package Overwrite option
Classes Business Rule
Macro
Package Overwrite option
Customer Satisfaction Surveys ServiceDesk N n/a
Case Analytics Dashboard ServiceDesk n/a Package Overwrite option
Dashboards if visible to all, a Role, or a Team Package Overwrite option
Global Picklists Object Field N
Global Template Variables not included
Knowledge Base articles not included
Knowledge Base categories not included
Mapping Profiles Package Overwrite option
Object definitions Lookup field
Rollup Summary Field
Package Overwrite option
Object records Package Data class as defined by the class
Pages Custom Form Action
Dashboard
Site
Web Tab
Package Overwrite option
Reports Dashboard Package Overwrite option
Roles Application
Process
Team Data Sharing Policy
Subscriber choice N
Sites Application Package Overwrite option
SLAs not included
Static Resources Package Overwrite option
Tab Preferences Role Package Overwrite option
Team definitions Business Rule
Macro
Process
Team Data Sharing Policy
N N
Team-object Business Rules Team Package Overwrite option
Team Data Sharing Policies Package Overwrite option
Translation Workbench n/a
Users Object * n/a
User-object Business Rules Users Object Package Overwrite option
User-object Fields Users Object Package Overwrite option
View Preferences Role Package Overwrite option
Web Services Business Rule
External Data Source
External Lookup
Process
N
Web Tabs Application Package Overwrite option
* The Users Object should be included to the package whenever fields or business rules have been added that the application references.
System Elements

This section describes important system-object and system-configuration items:

System Element Included when Installed when
Selected or if Referenced by Added if New Updated Deleted if Old
Access Profiles not included
Business Hours Calendars Process N N
Email Channel settings not included
Facebook Channel settings not included
LDAP Configuration not included
Marketplace listings * not included
Service Portal settings not included
Scheduled Jobs ** not included
Single Sign-On settings not included
Twitter settings not included
* Potentially valuable for an on-premise installation that wants to back up their primary admin tenancy.
** Scheduled Rules, on the other hand, are included, along with other Business Rules.