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.

1
vote
0answers
16 views

Trying to deploy HEDA package in a scratch org

I'm trying to add fields to an object (hed__Affiliation__c) in the HEDA package. But when I install the package in my scratch org with the "sfdx force:package:install" command I can't see that object....
1
vote
2answers
22 views

How to get CompactLayout through metadata - Package.xml

I'm trying to get the CompactLayout through package.xml but I don't its retrieving here is my package.xml looks like: <type> <members>my_custom_object__c-my compact layout</...
1
vote
0answers
12 views

Does Unlocked Package support Person Account?

I'm having problem trying to create Unlocked Package with dependencies on Person Account. So, I would like to know if it is officially supported or not?
0
votes
0answers
13 views

How do I specify profile mappings on a PackageInstallRequest?

I have created an unmanaged package containing a Salesforce Platform Profile named "Foo". In the org where I am attempting to install the package, I have also created a Salesforce Platform Profile ...
0
votes
1answer
24 views

Standard custom fields

I have a totally new, untouched org (Partner Developer Edition). I was going to make some customizations but before I did I created a new unmanaged package. I happen to notice though that there are ...
7
votes
1answer
142 views

Second Generation Packaging Confusion

Bear with me but I am completely confused as the documentation is fragmented, not entirely specific, and contradictory in places. Background I am creating an unlocked no namespace package for our ...
0
votes
1answer
12 views

How to update a package in test environment after I changed it in development environment?

How to update a package in test environment after I changed it in development environment? After creating a package I forgot to add a few records of a specific Custom Metadata Type. Now I went to the ...
2
votes
0answers
27 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
20 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 ...
2
votes
0answers
38 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
6 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
33 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
16 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 ...
1
vote
2answers
244 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
58 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
21 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
18 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
12 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
203 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
212 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
28 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
29 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
32 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
25 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
128 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
166 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
114 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
78 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 ...
1
vote
1answer
580 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
49 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
65 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
24 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
62 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
32 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
25 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
133 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
2answers
92 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
93 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
406 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
40 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
79 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 ...