Questions tagged [managed-package]

A managed package is a fully-upgradeable container used to distribute everything from an individual component to a set of related apps.

Filter by
Sorted by
Tagged with
63
votes
1answer
4k views

InstallHandler runs under a special ghost user. What rights does it have?

When you install a managed package with a post-install script, Salesforce creates a special ghost user under which all of the post install activities occur. I think this is undocumented. Here are some ...
22
votes
7answers
11k views

How to get a list of the managed packages (including version numbers) installed in an org?

For a continuous integration setup, I only want to install/upgrade some packages (through the new InstalledPackage mechanism) when necessary. I've looked at the Metadata WSDL (and documentation) and ...
34
votes
4answers
7k views

Namespace Prefix in JavaScript and Apex within Installed Package

When you have a dedicated Visualforce Page and can use modern JavaScript Remoting techniques, this is seldom an issue. But I'm looking at some historical code in a managed package like this: {!...
21
votes
2answers
2k views

How to show a Visualforce page on the first installati​on of the managed package?

I want to show the vf page on the first installation of the managed package, or it can be the custom setting page should open up on installation, where the user will add all the custom settings on the ...
17
votes
4answers
8k views

How to handle installed Managed Packages failing tests?

I have several AppExchange apps installed that are failing tests. What is the recommended approach to resolving this? Are tests run when a new package is installed? Is there a way to determine what is ...
22
votes
2answers
3k views

Managed Package Integration without Extensions or Dependencies

Suppose I am developing a managed package and I want to build some additional packages that can integrate to it. Let's call the main package Package A. I want to create a separate package (Package B)....
15
votes
2answers
17k views

How to retrieve layouts of customs objects belonging to a managed package?

I am trying to retrieve the layouts of all(standard + custom) objects from a test Enterprise org using package.xml manifest files. There are some customs objects that I have created on this org. ...
19
votes
2answers
5k views

WebServiceMock causing “CalloutException: You have uncommitted work pending” when creating managed package

I have a number of test methods that call Test.setMock(WebServiceMock.class, new SomeWebServiceMockImpl()); where SomeWebServiceMockImpl implements WebServiceMock. These test methods pass when I run ...
3
votes
2answers
1k views

Querying Managed package version from Apex

Is it possible to query the version number of an installed managed package? I do not find any information in the PackageLicense object. If not, what is the alternative approach?
7
votes
1answer
1k views

Issue with GlobalDescribe Field Results and Managed Package

Situation: Managed Package Class is global class Field Named NS__Field_Name__c Running in subscriber org code: String fld = 'NS_Field_Name__c'; Map<String,sobjectField> flds = object__c....
5
votes
2answers
1k views

are custom fields deletable from a managed package?

I see this has been asked before but this doc seems to indicate that custom fields are developer deletable (pg 29), am I missing something? I don't see any way to delete them. https://na15.salesforce....
37
votes
6answers
7k views

Documenting Salesforce.com Apex class files

[I asked this question on Stack Overflow but didn't get any answers there.] Since the Salesforce.com Apex language is "Java-like", I'd like to use javadoc or Doxygen to generate API documentation for ...
31
votes
3answers
5k views

How to build custom UI that works both for users that have opted in to Lightning Experience and users that have not?

This isn't a question about the pros/cons of Lightning/Visualforce, but is a question about how to build custom UI for the period of time (a year or many years?) where some users/orgs have Lightning ...
7
votes
5answers
8k views

Installing managed packages to Scratch org via configuration

We've recently started adopting Salesforce DX and we're trying to figure out the best way to spin up Scratch orgs. As of now, we have multiple managed packages from the AppExchange installed in ...
18
votes
3answers
6k views

How to redirect to default namespace vf page from managed package vf page?

Question If I'm on a managed package page, how can I link to a visualforce page in the default namespace without hardcoding the instance? Background I'm building a skuid page that has a custom ...
14
votes
1answer
246 views

API 31.0 breaking change in namespaced Visualforce $Setup global

Has anyone encountered this problem when evaluating $Setup global variable in Visualforce? If, in an organization with a namespace prefix, I have a hierarchy Custom Setting like the following, it ...
14
votes
5answers
4k views

What are the best practices for managing changing picklist values in managed packages?

One of the issues that we always see when creating new releases of our managed package is that new or changed picklist values don't deploy when someone upgrades our app using a new release that we ...
10
votes
2answers
4k views

Connected App in Managed Package

As a part of our development process we have a trunk and stable packaging org. Normally features get merged in to stable from trunk once they have been tested and approved. I have added a Connected ...
9
votes
1answer
733 views

Can the production org id corresponding to a sandbox org id be found via Apex?

The use case is that we have added additional licensing parameters to the LMA License object that our managed package reads from the LMA via a @RestResource site added to the LMA org. This works ...
7
votes
1answer
3k views

Why are visualforce pages served from a different domain?

There are a number of reasons why this is frustrating. The biggest for me is that embedded visualforce pages can't use JavaScript to access the parent frame. There doesn't seem to be any benefit ...
20
votes
3answers
8k views

Protected Custom Settings in managed package are not visible by apex class

I'm facing a major problem is critical stage of my project: I have packaged my app in a managed package (currently beta), including 5 custom setting objects, 2 of which are Protected. The 2 protected ...
7
votes
1answer
322 views

How to access Winter 13's Push Major functionality

We are ISV Partners and all of our packaging orgs have been upgraded to Winter 13. One of the features of Winter 13 was supposed to allow us to push major release versions to subscriber orgs. I would ...
3
votes
1answer
2k views

How to access a protected custom setting info in managed package

So, we uploaded the managed package and installed it in a new org (as the clients would) but when querying from an apex class the (protected) custom setting fields it throws an exception as if the ...
2
votes
1answer
364 views

Cannot update Custom Metadata records from Subscriber org in managed app

The custom fields are subscriber editable, and the custom metadata is not protected. I can update the field values in developer org in a managed app, but when I try to update in subscriber org in ...
25
votes
1answer
784 views

Plans for obfuscation of Lightning Component source when delivered in a managed package?

This Enable Debug Mode for Lightning Components documentation says: By default, the Lightning Component framework runs in production mode. This mode is optimized for performance. It uses the ...
8
votes
1answer
476 views

Unable to implement HTTPMock from Managed package in Local Test Methods - Complete example with package

A while ago SF began failing tests that make callouts without an HTTP mock. When they did that we were unable to deploy some trigger as a managed package made a callout whenever an Opportunity was ...
6
votes
2answers
2k views

Manage Package upgrade failure - couldn't retrieve the design time component information for component X

I released a Managed Package version 1.1 and installed on both Developer Org D1 and Sandbox Org S1. Later I added a new Lightning Component and Lightning Record Page to the Package and released a ...
15
votes
3answers
12k views

Get the list of users licensed for a Managed Package

I'm developing a managed package and I need the list of users with the license for the managed package within the package. Any idea on where to start will help! Overriding a standard button ...
10
votes
3answers
2k views

Can't install managed package because packaged permission set seems to have lost a read permission

I developed a Managed Extension Package. When I try to install it or create a patch org for it, this fails with no error but the note to call Salesforce. Support told me that it fails due to: ...
8
votes
1answer
951 views

SOQL dynamic query issue - managed package

Stuck with an issue related to Dynamic SOQL queries in Managed package. As an example in our package, we have a object and field named as sf_com_bh__Application__c and ...
6
votes
3answers
3k views

Apex: Getting namespace prefix

We have a scenario where we need to make assignments to fields using the method put(String, Object) Ref: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/...
5
votes
1answer
150 views

Deprecate or remove an Apex Invocable Action from Process Builder in a Managed Package

We released global facing Invocable Apex Actions to be used by Process Builder, but would like to hide a couple of them from subscribing orgs. From the official documentation on invocable methods, ...
5
votes
2answers
2k views

Checking to see if a user has a licence for a managed package

So I'm aware that there is a method on UserInfo called isCurrentUserLicensed which lets you check if the user running the code has a licence for a namespace that you specify, i.e. for a particular ...
13
votes
1answer
567 views

Install Managed Package Into Sandbox Fails on All Lightning Component Bundles

I have developed an app for the Salesforce platform and have successfully created a beta managed package ready for testing on one of our sandboxes. however when I try to install the package on the ...
11
votes
1answer
4k views

Issues with managed package visibility?

Question Is anyone experiencing issues with incorrect managed package apex class visibility? Suddenly unable to save a class and everything seems to be in order. What am I missing? Anyone run into ...
11
votes
6answers
1k views

App disappears from Permission Set included with package

We're working on our first Salesforce package, and recently switched from creating Beta packages to a Managed Package. For some reason, the permission set that we're pushing loses the entry in ...
10
votes
1answer
1k views

Is it possible to access static resource of a managed package in a local VF page

Is it possible to access a static resource of a managed package in your local environment? Thanks
7
votes
2answers
8k views

Assigning Managed Package Licenses in a Sandbox

In our production organization, we can access the following page either through a related list on the User object (Manage Licenses) or through a link in Installed Packages next to the package. We ...
7
votes
2answers
2k views

How to remove a custom field from a managed package referenced in a custom report type?

Question Is there anyway to get rid of custom field in a managed package that has been referenced in a custom report type for that managed package? Background I've built a managed package and for ...
4
votes
2answers
903 views

Test for presence of specific object or managed package?

I am writing a test class that needs to be instance-agnostic. On some of our instances we have a managed package that affects the outcome of the test, so I need to insert some test data that will be ...
4
votes
1answer
330 views

Customer org corrupted: Public class deleted in 1.2 magically gets deprecated in 1.1.1 patch

We pushed patch 1.1.1 of our managed app to a customer production org which worked fine in their sandbox for the last weeks. After the installation our customers faces compile-time type errors as Apex ...
1
vote
2answers
830 views

Retrieve Setup>Create>Packages

Is it possible to retrieve packages from Setup>Create>Packages(not from Setup>Installed Packages) in the way like we can retrieve installed package and deploy it to destination environment. I am ...
12
votes
1answer
1k views

Managed package callout invoked from managed package extension causing test class failure

We have a managed package that has executes a HTTP callout from a trigger that calls a future method on the insertion of new records on a particular object. We have a managed package extension that ...
7
votes
2answers
575 views

Email Service via Metadata API fails to create from Managed Package

As Email Services can't be packaged in a Managed Package, I allow subscribers to create it after the installation. The code which works in my packaging org fails in productions orgs with: An Apex ...
6
votes
3answers
4k views

Installed Package information, specifically Status

Is it possible to get information on the package through APEX after it has been installed? Specifically I want to know the Status (see below) The reason I want this is because I want to show ...
5
votes
3answers
2k views

I have a managed package, if I add values a picklist, will my customers get it on an upgrade?

I have a managed package. I have a picklist about where to store something. If the picklist has "Files" and "Notes and Attachments", and I want to add "Content" as an enumeration, when I make a new ...
5
votes
1answer
804 views

Logs always showing ENTERING_MANAGED_PKG in dev org

I am developing in a namespaced DE org (not packaged yet) and using standard SFDC_DevConsole debug levels (Apex = Debug, System = Debug, DB = Info) with no trace overrides. But all I see in the logs ...
5
votes
1answer
1k views

How do i retrieve all installed packages names through API?

I am using RetrieveRequest object to retrieve packaged and unpackaged components. Part of the code is: String[] packageName = {"Salesforce for Google AdWords"}; RetrieveRequest retrieveRequest = new ...
4
votes
1answer
212 views

Create canvas app using Apex

Is it possible to create a canvas app using Apex? We're trying to distribute a managed package that has an easy install process for the user. Our back-end server requires that each customer has a ...
4
votes
1answer
2k views

Custom Field Limits For Managed Packages

The documentation on global limits says this: The custom objects contained in a managed package publicly posted on the AppExchange don't count against the limits for your Salesforce Edition. ...