Questions tagged [second-generation-packaging]

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
319 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 ...
2
votes
0answers
16 views

2GP Patching Fails Due to Missing SalesProcess Value Even Though Same Code Packages Fine

We've been trying to patch with 2GP for a few months now but we're constantly hitting errors even when the only change is a comment in an apex class. Many errors were around reports so to try to get ...
2
votes
2answers
58 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
156 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
36 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
46 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
101 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
76 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
33 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
0answers
16 views

How to check if another managed package from same namespace is installed - 2GP

Scenario: Single namespace with multiple 2nd generation managed packages. Core |-Extension 1 |-Extension 2 In this example how can I determine whether or not Extension 1 is installed from Extension 2?...
0
votes
1answer
21 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
0answers
32 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
20 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
39 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 ...