Questions tagged [second-generation-packaging]

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
318 views

Managed Package error emails behaviour changed?

I have a First-Generation Managed Package that was updated and released for years. It's current version is 6.0. I just recent added a User to the Package page to get error notifications as described ...
4
votes
0answers
40 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 ...
3
votes
0answers
20 views

2gp Patching is Failing Even When the Only Change is a Comment

I'm currently trying to get patching working for our 2gp managed package but it's consistently hitting the same set of errors around report folders and report filters (see screenshot). Now I know what ...
2
votes
2answers
49 views

Release new version of unlocked package

I have a sfdx-project.json for my unlocked package. Version 1.0.0-11 was promoted. { "packageDirectories": [ { "path": "force-app", "default": true, "...
2
votes
1answer
135 views

Adding a post-install script to a second generation managed package

I'm creating a second gen managed package using sfdx and I'm not sure how to add a post-install script. Most information I've come across involves updating the package from within an org. Is this ...
1
vote
0answers
33 views

Confused on getting started as an ISV

I started following the ISVForce quick start guide. This guide seems out of date and not entirely accurate. The first step is to register in the partner community. When I did this I received ...
1
vote
1answer
42 views

How to use .forceignore for scratch org push but not for packaging

I'm trying to package connectedApp using 2nd generation packaging as instructed here: https://salesforce.stackexchange.com/a/325175 However, the special xml file creates a conflict between scratch org ...
1
vote
0answers
86 views

2GP: How to Upgrade Beta Managed Packages

Is there any way, or is there any plan (safe harbour) to make it possible to upgrade a Beta managed package without needing to uninstall the previous version first?
1
vote
0answers
58 views

sfdx-project.json for second generation package proper ancestry structure?

Currently my sfdx-project.json looks like this: { "packageDirectories": [ { "path": "force-app", "package": "my package&...
1
vote
0answers
30 views

Second Generation Unlocked Packages without Namespace not including components

I'm trying to create a package version for an Unlocked Package with no namespace specified. I can verify this works when running force:package:list and force:package:version:list. I'm including some ...
0
votes
1answer
20 views

Dynamic class initialisation doesn't work in 2GMP

I want to use dependency injection to detect if descendant package is installed in addition to inherited package and modify the behaviour of inherited package to depend on class from descendant ...
0
votes
1answer
31 views

Second Generation Packages: ERROR running force:package:version:create: : The object 'Object' of type Settings metadata does not exist

I am getting this error when I create version of a new second generation managed package. The project has simple Apex class without code and dependency on single 1st generation managed package. Are ...
0
votes
0answers
31 views

Second-Generation Managed Package with Package.xml

i would like to ask if there is a way to further restrict data which gets into package based on package.xml for example like when retrieving metadata... Basically what I need is to have a git ...
0
votes
0answers
19 views

Is there any way to set the Configure Custom Link in Second-generation managed packages?

Is there any way to set the Configure Custom Link in Second-generation managed packages? I can't find in the documentation any clues or options to get this done
0
votes
1answer
35 views

Which package type will be preferred for ISV?

I am planning to list my app in exchange, As ISV what is the preferred type for Listing. when I try to add my 2gp package for security review it does not link my dependent package. should I have to ...