Stack Exchange Network

Stack Exchange network consists of 174 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

A package is a container used to distribute something as small as an individual component or as large as a set of related apps.

2
votes
0answers
17 views

Renaming a class results in an error from sfdx packaging 2

I've built a managed package using SFDX and the new packaging features. I recently did some refactoring on a public class in the package (note: public, not global) which included giving it a better ...
-1
votes
1answer
11 views

How to retrieve Version Number and Install Date of a specific Installed Package?

I'm building a VF page which will display information of the following details: Version Number of Installed Package - I got from Publisher Object (merging MajorVersion and MinorVersion gives the ...
0
votes
0answers
12 views

Unlocked Package install fails: Details: “Your requested install failed” (1259856384)

I have a quite complex package that I can not get installed on any org (Sandbox, Production, Scratch Org) ... The install always fails with the following error message: Install failed, Details: Your ...
1
vote
0answers
24 views

Unlocked packages behaving like managed packages

Sorry if this question has been asked before (please point me to the answer if that's the case). I have created and installed an unlocked package successfully in a scratch org. I want to go ahead and ...
0
votes
0answers
5 views

Access to custom fields of manage package in subscriber org's all profiles

Can subscriber org get's field level access of custom field contained in manage package to all the profiles? Or it depdends on what FLS you have selected for custom field on packaging org. If you ...
0
votes
0answers
11 views

Automatically get access to all the fields of custom object in manage package

In the subscriber org, the admin profile user automatically gets access to all the fields of custom object contained in manage package. Please share your thoughts on this as what could be the reason ...
3
votes
1answer
25 views

(SFDX - Package Version Creation) — These entities are not supported: (Site)

I'm currently trying to create a package version, but I'm encountering this error: These entities are not supported: [Site] The commands I used for creating a package and package version are the ...
0
votes
0answers
15 views

Unable to create record of public custom setting of manage package

I have a public list custom setting included in manage package. Salesforce standard User is not able to create the record of that custom setting after installing the package. How can I give custom ...
0
votes
2answers
78 views

SFDX: how to delete a package

In the documentation, there is a command sfdx force:package:create. This works. If I then issue the command sfdx force:package:list, it perfectly shows the package I just created. Now the question is, ...
2
votes
1answer
16 views

force:package:version:create: Cannot read property '0' of undefined

I created a package that contains some account customizings such as record types and custom fields for accounts, flows, custom objects and a couple of rest endpoints to expose functionality. I can ...
0
votes
0answers
24 views

Unable to uninstall beta released manage package

I'm trying to uninstall unmanaged package, it is giving error as apex class [class name] in use by queued or in progress apex batch or sharing recalculation and can not be deleted. I've cleared ...
0
votes
0answers
19 views

SalesforceDX: How to fetch source code for specific package version from package dev org

I could fetch source code for latest package version from package dev org using the following command: sfdx force:mdapi:retrieve -s -r ./latestPackageVersionCode -p MyCoolPackage -u packageDevOrg -w ...
0
votes
1answer
16 views

Retrieve Package Name & Package Version of the Installed Packages in Org [duplicate]

Is it possible to retrieve Package Name & Package Version of the Installed Packages in your Org programmatically?
0
votes
0answers
27 views

After migrating page to other sandbox got error : View state size exceeded [duplicate]

I have VF page and a controller class working fine in my dev sandbox. The same functionality i am trying to migrate to completely different company's sandbox. I deployed all components through package....
0
votes
1answer
11 views

Can I add permission to new profiles after re-installing a managed package

I have a managed package which I have installed in Salesforce. Now I have some new profiles created. From what I understand, if I un-install the managed package and re-install it from all profiles, ...
0
votes
1answer
106 views

SFDX dependencies are not installed

I have a problem installing dependencies from sfdx-project.json. I created a Second Generation Package and generated a new version. I specified dependency as follows: "dependencies": [ { "...
8
votes
1answer
135 views

How to remove a Package from my DevHub org?

I have created an Unlocked Package in my DevHub using force:package:create and installed it in a scratch org for testing. Now I can't seem to find a way to remove it. I really don't want it showing up ...
0
votes
1answer
27 views

Replace existing managed package vf page by extension package vf page

I have a managed package that is deployed in an org. In the managed package there is a vf page called ShowInformation.vfp that shows some records. Now, I have added new feature in ShowInformation....
2
votes
1answer
26 views

Managed package : can I create a patch for previous version major package

Let's say I have created a major package 1.2.0 and have added some new functionality with new components. I also have a package with version 1.1.6 without the new components and functionality. For ...
0
votes
1answer
25 views

Managed package namespace issue

I have doubts with name-space appending with few scenarios scenarios are: Dynamic SOQL Schema.getGlobalDescribe() : using SOBJECT Storing field in custom setting Field Values. Do I need to merge ...
0
votes
2answers
27 views

Remove and redeploy package

We have some problems with a custom (unmanaged) package (setup>build>create>packages) installed in our prod org (not downloaded from App Exchange) It references another package that has to be ...
0
votes
1answer
22 views

WSC Metadata File Creation and Clean Formatting

We are using Force WSC library in Java to create Metadata xml files. Functionality it is working as expected but the files it generates when serialized to file is not clean formatted (with lots of ...
4
votes
1answer
105 views

Are custom labels referenced only in Lightning Components automatically packaged?

This (not marked as delivered) idea Custom Label Auto Packaging in Lightning Components has a "Latest Comment from Salesforce" of: Farhan Tahir - 5 months ago This is coming in Spring'18!! ...
1
vote
0answers
146 views

Managed Package: Differences between quick actions and “Error: Cannot modify managed object: entity=QuickActionDefinition”

I have got a managed package, which I install on developer org to test it. After installation I can surely see the differences between the quick actions, which I've on my testing org and on the org ...
0
votes
1answer
92 views

I created a Unmanaged package and uploaded…but while installing got this error

I have created a Unmanaged package with objects and other components. There is 1 page, 1 class and 1 test class in that package. When i try to install that package in Professional edition...i get ...
0
votes
0answers
56 views

how to use 2GP unlocked packaged for existing project

If I have got some existing code in my org which is not in a package yet. I might create one package in order to retrieve the data into the DX project. After that I can create an unlocked package ...
0
votes
1answer
405 views

how to retrieve specific Queues using package.xml [duplicate]

I have some Queues which needs to move to other sandbox. Please suggest the package.xml structure
0
votes
1answer
19 views

Unable to find the installed package

I created my first Lightning component and created a package , then upload that package and had a link available for installation. Then I tried to install that with a different organization and ...
2
votes
2answers
42 views

Can we find dependent components using apex?

When we create unmanaged packages, if we add a Lightning app in the component list, Salesforce automatically adds all the related components - Apex classes, Objects, Fields, Custom settings, etc. in ...
0
votes
1answer
17 views

Impact of deleting the custom fields with upgraded ManagedPackage

The ManagedPackage (Ex: MPV1) with few custom fields(Ex: C1,C2,C3,C4) in Account Object is created and installed in an instance(I1). I wanted to remove few customfields(Ex: C3 and C4) and recreate ...
0
votes
0answers
59 views

unknown error when deploying managed/unmanaged packages

Edition: Developer I have created a unmanaged package and then upgrade it to managed package(using salesforce builtin package manager), and deploy it to another developer edition successfully. But ...
1
vote
0answers
15 views

PostInstall script disappearing when building package

After specifying a PostInstallScript on a package, then building it, the field disappears while it's processing: It seems that it's not functionally an issue, as when the package is built it's still ...
2
votes
0answers
22 views

PostInstallScript with second generation package

Is it possible to specify a PostInstallScript, or UninstallScript, using the second generation packaging API? I haven't yet found any reference to it in the DX documentation, the SFDX project file ...
0
votes
0answers
14 views

Cannot install AWS Toolkit in sandbox

I want to install Force.com for AWS through the AppExchange in sandbox. I went through the below link for https://developer.salesforce.com/page/Installing_Force_for_Amazon_Web_Services for step by ...
1
vote
2answers
61 views

Call a static method in managed package dynamically

I am preparing an un managed package. I need to call a static method in a managed package from the unmanaged package. I went through salesforce documentation on Type class. But I didnt find any way to ...
1
vote
0answers
27 views

Apex Logging for Managed Package

I log my apex code exceptions using getStackTraceString(). I understand that this is not visible to a customer log normally. But I already logged in to our LMA and logged in to the subscribers org and ...
0
votes
1answer
23 views

How to share single packaged application with Multiple Business Unit or Lines of Business so that both see a separate application in single Org

We have a community-based app on AppExchange. We are using CustomSetting for application configuration. We have a client who brought our product to his one BU/LOB. Again they would like to buy our ...
0
votes
0answers
26 views

How to Create New User for App intergration when Package is installed in Salesforce

I am building a new package for salesforce which connects with my external application. I would like to create a new user in salesforce to connect external application with salesforce when the the ...
1
vote
2answers
125 views

Test fails in destination Org with System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE

I've a test class for a controller which passes in the development Org but not in the destination/sandbox. Here's the error I get System.DmlException: Insert failed. First exception on row 0; first ...
0
votes
0answers
34 views

Getting error “Feature Required: CommonPortal” when pushing an upgrade to a managed package

we had this problem and it was determined to be to do with references to the "Network" class in the apex. If an org does not have communities enabled then you cannot use this class and it will return ...
0
votes
2answers
64 views

Remove managed package dependency

Good day Everyone. My question is a follow up question for my first problem which is already answered here. This is the link of my first question Use Object from another manage Package without making ...
5
votes
1answer
88 views

Use Object from another manage Package without making my own package dependent to it

I have some problem with package dependency. This is the scenario. There is a package named as "Package B". In my class I want to check if "Package B" exist. If it exist, I will create new record on ...
0
votes
0answers
59 views

“This id is not a valid dashboard id” error on managed-beta package install

I have uploaded a managed-beta package from org A, and have tried to install it in org B. My installation failure message from Salesforce includes 5 instances of the following problem, each for a ...
0
votes
0answers
360 views

Cause :UNKNOWN EXCCEPTION, Invalid Cross Reference ID During ANT undeployCode

I am trying to remove a class from my QAT using destructive.xml ANT script and getting the following exception. Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): ...
1
vote
1answer
39 views

Can we skip the custom metadata object name field during setup?

I've a sync status that I need to map across platforms for which I'm planning to use the custom metadata type because of the following reasons. I've a list of key-value pair records that needs to be ...
0
votes
0answers
73 views

Impact of validation of package.xml having Sharing Rule

I am planning to deploy few sharing rules on Account, Contact object from UAT to PROD through package.xml. Before actual deployment, I would like to just validate the package against production ...
0
votes
2answers
25 views

Can we query (and use) field value from package without becoming dependant on that package?

I have a case where I would like to use a field from a 3rd party package in my package, if that package is not installed in the target org I can use a default value. This question tells me how I can ...
0
votes
0answers
27 views

Upload Package issue

While doing Managed package upload I am getting the following Error. Page 'SiteTemplate.apexp' exposes public remoted methods in component 'NameSpace__FileName' that are not in the same namespace as ...
6
votes
1answer
409 views

Can't access a global Apex class inside a managed package

I have an Apex class inside my managed package: global class MyGlobalClass { global static void doWork() { //... } } But when I call this code from the org where this package is ...
0
votes
1answer
31 views

Package installation by selecting moudle

Is Salesforce provide any way to install the package by selecting module? Example - I have a managed package and it contains two module like A and B. Is there any to customize the package installation ...