Extend Work.com with Custom Solutions
Set Up Your Work.com Development Org
Package Your Work.com Solution
Work.com Command Center Licensing
Previous PDF Versions
Choose the most appropriate type of package based on your solution design and resulting dependencies.
Work.com:
The following options illustrate how your packaging strategy can introduce or avoid Work.com hard dependencies for your end users.
Directly accessing the Work.com data model introduces Work.com hard dependencies. The same is true if you use declarative features, such as flows, reports, and triggers in your base package. To avoid these dependencies, choose another packaging strategy, such as an extension package.
If you use only dynamic Apex and custom Lightning Components to access the Work.com data model, there are no Work.com hard dependencies in your base package.
Use dynamic Apex with InvocableMethod annotation, Salesforce Object Query Language (SOQL), Salesforce Object Search Language (SOSL), and Lightning Components in a new or existing package. Lightning Components can use the object query and search classes to dynamically access the data model.
Your package can also listen for messages on the Work.com LMS channel without introducing Work.com hard dependencies.
However, using declarative features, such as flows, reports, and triggers, without using Apex InvocableMethod annotation, introduces Work.com hard dependencies. To avoid these dependencies in your base package, create an extension package that uses the declarative features.
Use an extension package to avoid Work.com hard dependencies in your base package. The extension package can directly access the Work.com data model, and use declarative features such as Lightning App Builder components and flows.
Your base or extension package can also listen for messages on the Work.com LMS channel without introducing Work.com hard dependencies.
Another reason to use an extension package is to preserve existing licensing requirements for your base package users. If you introduce Work.com dependencies in your base package, you also introduce a Workplace Command Center add-on license requirement for your base package users. Instead, abstract the dependencies to your extension package. A Workplace Command Center add-on license is required only for users who install your extension package.