Questions tagged [2gp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

2GP: Filtered report charts in Lightning Record Pages can't be packaged and working

In a 2nd generation managed Package, I want to include Filtered report charts in Lightning Record Pages, but I either can't package them because the filter is namespaced, or the filter is broken in ...
0
votes
2answers
39 views

Create 2GP package version with multiple dependency

I have below JSON file having more than one package dependency link to single package. When a package has single dependency it executed without error but if a package has two dependency I am getting ...
3
votes
1answer
50 views

FLS check in 2GP

I've created a new 2GP package. Since it is going to be released to AppExchange, I've implemented a generic CRUD and FLS check for every place I contact with the Database in my Apex code. e.g. ...
1
vote
1answer
20 views

Unlink Namespace Dev Hub

Obviously you can link a namespace to a Dev Hub, but is it possible to unlink a namespace from a Dev Hub and link it to a new one?
0
votes
1answer
22 views

Link Namespace window throwing an error

When I click the "Link Namespace" button, it pops up a new window and then give this error: Is the only way to resolve by contacting support?
0
votes
1answer
31 views

2GP managed package: cannot create a patch release

We have an "extension" package that integrates our managed 1GP with a third party managed 1GP. This "extension" package is realized as a managed 2GP. We hit a problem when trying ...
4
votes
1answer
89 views

Difference between Unlocked vs Second Generation Managed Package

Bear with me, I'm not sure I fully understand what's given in the documentation. I understand the difference between 1GP vs 2GP. From what I read Unlocked Packages are different than Second-Generation ...
1
vote
1answer
53 views

Second Generation Packages - Mismatching Versions

Is it possible to avoid mismatching version during Salesforce transition periods? Salesforce message Mismatching Versions. The AppExchange Application or component you have selected is not yet ...
2
votes
1answer
66 views

Second gen package error about a component being a scratch org ancestor? What does this mean?

My sfdx-project.json looks like this: { "packageDirectories": [ { "path": "force-app", "package": "my package", ...
1
vote
1answer
95 views

SFDX 2GP: cannot create new managed package version

I need to add a new class to an existing 2GP managed package. I get the following error when I attempt to create the package using the SF CLI. How do I resolve this issue when I attempt to build it? ...
4
votes
0answers
53 views

Managed 2GP Package CI/CD

We're looking to adopt a CI/CD flow similar to this Salesforce diagram. The CI part is pretty much there but with 2GP all packages are created as beta packages which can't be upgraded in our Test/UAT ...
5
votes
1answer
90 views

Solving error about NavigationLinkSet when packaging a community using 2GP

In a Community that I am trying to package using 2GP with: sfdx force:package:version:create after eliminating several errors I am now getting this one: These entities are not supported: [...
3
votes
1answer
97 views

How to use second generation packaging (2GP) for a community?

We've been running Jenkins builds for a while containing: sfdx force:package:version:create --skipvalidation ... with no problem, but now we are preparing to promote to a release, removing the --...
3
votes
1answer
25 views

Problem with object layouts and custom global actions in package (2GP)

So I'm trying to install a new 2GP package that has an object with a custom global action as part of it's page layout. I'm running into problems and I'm wondering whether I've missed something or if ...
3
votes
1answer
45 views

Enforce default version order in Managed 2GP

One great feature of Managed Second-Generation Packages (M2GP) is dynamic and flexible versioning. In First-Generation packages we had a strict linear version where each uploaded version dependent on ...
4
votes
2answers
145 views

How to speed up scratch org creation when it includes installed packages

We are just setting out on our journey with 2GP. Our first 2GP is a new "extension package" that integrates our core product (an existing 1GP) with a third-party product (another existing 1GP). As ...
1
vote
0answers
26 views

Can a 2GP managed package depend on a BETA release 1GP managed package?

We are creating a new "extension package" for our AppExchange 1GP that integrates it with a third-party managed package and want to use 2GP for this "extension package". The third-party is willing to ...
3
votes
2answers
142 views

Change version number scheme in sfdx-project.json

For the sake of simplicity, I want to change the default version number scheme of SFDX projects from Major.Minor.Patch.Build to Major.Minor like "versionNumber": "0.1.0.NEXT" to something like "...
3
votes
2answers
319 views

'ParentId' field missing when deploying ExperienceBundle - 2GP

We are attempting to deploy a community (ExperienceBundle) through an Unlocked Second-Generation Package. The package will create fine but once we install it in an org, we get the following error ...
0
votes
0answers
82 views

Unable to deploy unlocked packages created with SFDX/CLI

I am unable to deploy unlocked packages created with SFDX/CLI . I am receiving the "The package version is not fully available. If this is a recently created package version, try again in a few ...
5
votes
1answer
834 views

Converting First Generation Managed Package to Second Generation (2GP) Packages

In light of the new Winter '20 release and that 2GP will be Generally Available, it means we'll be able to develop and release managed packages on the AppExchange through the new 2GP processes. In ...