Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
2answers
130 views

2 Managed Packages in 1 Dev Org

We have a Managed package, and we want to create another Managed Package extension in the same Dev org. Can I create 2 Managed Packages in 1 Dev org? If not, what are my options and do I have to pay ...
1
vote
1answer
14 views

Lookup required change in managed package

Lookup options include [✓] Required (Always require a value in this field in order to save a record) What to do if the lookup record is deleted? ( ) Clear the value of this field. You ...
3
votes
1answer
31 views

Second-Generation Managed Package Security Review

Generally, the question stands as what steps need to be done in order to send 2-nd generation managed package for security review. Current conditions: I have developed 2-nd generation managed ...
2
votes
0answers
11 views

packaging/patch org on newer version than subscriber orgs: how to patch?

Every time Salesforce rolls out a seasonal update we face the following problem: our packaging org as well as all patch orgs linked to it are on a node that is in the first tranche of orgs being ...
0
votes
0answers
10 views

Trail Tracker Issues

Yesterday we installed Trail Tracker into our org to help with our lightning migration. It successfully pulled anyone's badges whose user account was associated with our org prior to the integration, ...
0
votes
1answer
18 views

How i can i control access of multiple apps in a one Salesforce package, when a customer installed it

I have multiple apps in a package. I don't want to give access to all apps for selected customers. is there a way I can control which app they can access in the package
3
votes
1answer
42 views

System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Invoice__c.CurrencyIsoCode

I am trying to get the CurrencyIsoCode from an object, but I don't know if Multi-Currency is enabled, because my code is part of a managed package. private static String getCurrencyIsoCode(SObject ...
0
votes
0answers
17 views

Apex Code: Distinguish Package Patch Org vs Package Major Org somehow

Is there any way to figure out at Apex code level whether org we are currently connected to is a Patch org or a Major Package org? Basically we need a way to distinguish programmatically between these ...
0
votes
1answer
12 views

Unable to read Contacts email address from site page ( in manage package)

I want to query contacts email address when logged in from a site, but I am unable to read the value of the email field of contact object. Is there any limitation for site user which will not allow ...
2
votes
0answers
18 views

Integrate external app using IFrame (not Canvas) and Security review

I have a customer that wants to integrate an external Java App with a Managed Package. As the endpoint (domain name) of the external Java App(s) is not static but differs from customer to customer we ...
4
votes
0answers
30 views

Extending metadata xml without overwriting in org

I'm creating a 2GP managed packaged that adds a custom tab to the Service Console. While developing in a scratch org, the metadata pulled into my project includes a customised version of the Service ...
1
vote
1answer
32 views

Install dependent package when developing managed package in scatch org

When developing a managed (namespaced) package in a scratch org we'd also like to install another package to help fully test it's behaviour. This other package actually requires the one in ...
3
votes
0answers
16 views

A delayed package install skips Post Install Script

After installing our package 10 times, it timed out installing twice and said it would email me with details of the install. It eventually installed after a few more minutes and emailed, but there was ...
1
vote
0answers
14 views

Remove dependency of Territory object from already released managed package

Salesforce has announced retiring the support for original territory management https://help.salesforce.com/articleView?id=000273181&type=1 and we have our managed package using the standard ...
1
vote
1answer
26 views

Can managed packages be installed in parallel?

Some of our Jenkins build install three largish managed packages sequentially taking about 30 minutes. I assume that these installs cannot be done in parallel instead cutting that time down to 10 ...
0
votes
2answers
40 views

Get NamespacePrefix for a given Package Id (in org with LMA app)

Is there a way to get the Namespace Prefix of Managed Package where I just have the Id of? Maybe it is helpful that my code sits in the same org as the LMA app in with its sfLma__Package__c objects. ...
0
votes
1answer
12 views

Cannot uninstall managed package because a custom object is referenced by a relationship field that has been deleted

When I try to uninstall my managed package, it tells me that I can't because my custom object, Carrier, is referenced by a lookup field on Account. So I went to Account and deleted the lookup field. ...
2
votes
0answers
27 views

Managed Package Install takes too long to show Config page

As Post Install Scripts are too limited for my purpose I added a custom Config page to my Managed Package because it displays nicely after the installation is done. The problem is that the ...
0
votes
1answer
26 views

Get test failures dynamically (as it goes) when uploading package, but not all at once in the end of upload process

When we are uploading our huge managed package, it takes up to 3 hours for process to finish and the major part of it are taken by tests execution. The inconvenience here is that tests failures are ...
6
votes
1answer
113 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 ...
0
votes
0answers
24 views

Lightning page is blank after installing the package in prod

Below is the simple hello lightning page.. Create a Custom Button on Opportunity with following formula. /apex/namespace__testHelloVFpage Name This button testHello. Drag and drop this button in ...
0
votes
0answers
41 views

Salesforce Lightning CORS issue: Failed to execute postMessage on DOMWindow

Synopsis: we have a Salesforce lightning app that works fine in the dev org, but once we create a managed package and install it in orther orgs, if fails with this CORS error: Failed to execute ‘...
0
votes
0answers
12 views

Password lost from named credential in unlocked package

I have created an unlocked package. The unlocked package contains named credential. The unlock package process creation when failed when there was no in the file. So, I had to add actualPassword in ...
2
votes
1answer
34 views

Accessing public class from different Package in same Namespace

Supposedly, it now should be possible to access a public class from different packages within the same namespace: Multiple packages per namespace, so you can better organize your source and easily ...
1
vote
0answers
20 views

How can we create a record of an object which is part of a managed package, via Apex?

I have recently installed a managed package in my org, and I want to create records of an object which is a component of this managed package, via apex. Right now I am unable to do so, because I guess ...
0
votes
1answer
21 views

How To Find Out What Was The Last Updated Field On A Lead Without History Tracking

A managed package updated a field on the Lead object but that field is not in the history tracking. Is there an easy way to find out what field was updated exactly? The Lead has 400+ custom fields ...
1
vote
0answers
26 views

sfdx create package version connected app error

I'm trying to create a managed package with a connected app. I have created the connected app in a scratch org and pulled it into source control (without the consumer key). After creating a package ...
0
votes
1answer
35 views

Not able to uninstall Managed Package because of community

I have a managed package (Chargent Anywhere) which consist a lightning component named "Chargent_Payment_Central". I have a community in my org and that community is not using "...
0
votes
0answers
17 views

Second generation package extensions

I'm in the midst of creating a second gen managed package and I'd like to add a Knowledge feature for orgs that support it. The first barrier I've hit while developing on a scratch org is that the ...
0
votes
1answer
22 views

How to activate a Process Builder inside a managed package

I have a managed package which ships with a template process builder which is inactive. I am trying to find a way to activate this process builder via the metadata API. Activating it via the UI is ...
0
votes
1answer
67 views

Conflicting triggers

I'm still new to Salesforce and still can't grasp regarding triggers. Scenario: My company's salesforce workspace has a managed package app installed. The managed package app has a custom trigger for ...
2
votes
1answer
30 views

Is there any ways to identify which managed packages most significantly consume our limits?

Our org is having trouble with our SOQL and CPU Time Limits. While it is probably true that our own legacy code could be bulkified better, this is a non-trivial, non-short term solution. Our org has ...
1
vote
1answer
31 views

Page layout isn't being installed from managed package?

I have metadata that contains a new page layout for Account. When I deploy this metadata to a scratch org, the page layout shows up in the Object Manager as expected. But when I include this metadata ...
1
vote
0answers
21 views

How to get installed managed package Name and Version numbers in Apex Class having API Version 29.0

I want to know version number of managed packages installed. I have identified two ways to get that information as shown below but they are not supported in API Version 29.0. Approach 1: Query ...
0
votes
0answers
12 views

Dynamically get instance URL in a (packaged) Flow

I have checked the list of Global variables on Flows but couldn't find any that is giving me the current instance URL. My flow is opening a Visualforce PDF and I a hardcoded URL just won't work in ...
4
votes
1answer
31 views

Flow from Unlocked DX package can not be changed in subscriber org. Why?

I just installed an unlocked package containing flows in a customer sandbox and was a bit shocked to see that the flow cannot be opened and adjusted by the customer/subscriber. I thought that's the ...
0
votes
0answers
16 views

Console Sidebar Component Insufficient Privileges

I have installed a managed package and now I need to uninstall, there is one visualforce page from this managed package referenced/used on "Console Sidebar Component", when I am clicking on the label ...
0
votes
0answers
19 views

Access Managed Package settings for users without a license

Our managed package contains a trigger that gets executed every time a Lead is updated or inserted. We want to allow our users to disable this trigger based on some custom setting in the managed ...
0
votes
1answer
28 views

Converting unlocked package to managed package [closed]

Is it possible to convert an unlocked package to a managed package? If so, how?
2
votes
1answer
31 views

Upload beta package - how to bypass or speed up tests execution

We have our huge managed package (1st generation, i.e. classic one) and every time when we upload new beta version (even with just a few fixes) it takes up to 3 hours for the whole process to complete ...
0
votes
0answers
8 views

Firing an application event of package A from package B

I recently came up against a problem related to event communication between two managed packages. In my scenario, I am able to fire an application event from package A and handle it in package B. My ...
1
vote
1answer
39 views

Is there any way to have a guaranteed order of operations with multiple triggers on the same SObject?

Our Salesforce org depends on about 20 managed packages, many of which include their own SObjects, and many of those SObjects have their own trigger operations. But we also need to do our own things ...
2
votes
0answers
39 views

How can I get Debug Logs for Apex code in my Managed Package which is invoked via Execute Anonymous on the Subscriber Org?

I have installed a Managed Package and connected it via the LMA. The subscriber org shows up under the Subscribers-Tab. An user on the subscriber org has granted me (as package provider) login access. ...
2
votes
1answer
39 views

I want to know when a managed package is updated in my org

Recently we had an issue and it went unnoticed for a while because one of the managed package was updated and its own settings was changed / removed. Is there a way in Salesforce org I can get ...
8
votes
1answer
138 views

SFDX: Create unlocked package version - What is happening behind the scene?

When we are creating unlocked package version in 2GP, we don't need to have packaging org at all to deploy code there, upload package etc. (as it was with first generation packaging). So we just ...
0
votes
0answers
26 views

Assign home page in a lightning app in managed package

I have managed package with its own app. I want to assign a lightning page as the home page of that app. How can we set it up?
1
vote
1answer
32 views

Referring Manged Packages in Unmanaged package

I have one AppExchange package, which is installed by various clients (for e.g. 100 customers). One of these customers has a specific requirement and to complete that I need to create an unmanaged ...
1
vote
0answers
22 views

Can we default to kanban view in managed package?

I am having a custom object in managed package and i want that object's list view to be a kanban view by default? What do we need to do to so that the package when installed will be viewable as a ...
1
vote
0answers
23 views

How do I change the publisher name for a Beta or Managed package?

According to an old question/answer from 6 years ago the publisher name comes from the Company Information, but this is not the case for me, as the company name is set in the company information ...
1
vote
0answers
31 views

How to add new components in a managed package using SFDX

I was going thru the process of creating a managed package from dx as described in this tutorial here. Now if i added a new field to an object already added in managed package then packaged using the ...