Questions tagged [2gp-ama]

This is a temporary tag for 2GP-related questions which should be considered by Salesforce for inclusion in the 2GP AMA ("Ask Me Anything") happening over Zoom on April 15, 2021.

Filter by
Sorted by
Tagged with
4 votes
1 answer
215 views

2GP Workflow and Upgrade Questions

I am having difficulty understanding the 2GP workflow. I have read through the documentation and have watched a number of videos but it is still not clicking for me. I was hoping to have someone point ...
user avatar
  • 3,183
2 votes
1 answer
33 views

Is there a scripted/coded/API way to remove a metadata item from an Unlocked Package?

When an Unlocked Package is installed into a subscriber org, the metadata from the package is tagged as belonging to the package. In that subscriber org, we can go to the package details through the ...
user avatar
  • 12.9k
0 votes
1 answer
47 views

Load data into object after Unlocked package

I want to load some data into an object after a package gets installed. I tried using a post-install script but seems these only work for Second-Generation Managed packages and not for Unlocked ...
user avatar
3 votes
2 answers
159 views

When referencing a 1GP connected app from a 2GP package, what happens when the certificate associated with the connected app is updated?

Given this detail about referencing an explicit version of a connected app from a 1GP managed package to include it in a 2GP package, what are the implications of updating an expiring certificate for ...
user avatar
  • 22.4k
3 votes
1 answer
102 views

Page layout assignments in 2GP

We are working on 2GP for one of our applications. We are facing one issue that page layout assignment is not happening after the installation of 2GP. Our package contains everything including the ...
user avatar
3 votes
1 answer
743 views

This app can't be upgraded: Invalid Upgrade: The currently installed version does not share a common ancestor with this version

I am trying to upgrade from v0.6 to v0.7 of a Managed Package which uses 2GP. I am getting this error message: This app can't be upgraded. There are problems that prevent this package from being ...
user avatar
  • 8,360
3 votes
1 answer
174 views

Package a custom field on LiveChatTranscript object using 2gp

We are creating an AppExchange application where we need to package a custom field on the LiveChatTranscript object. While creating a 2GP package, we are getting an error: LiveChatTranscript....
user avatar
  • 2,232
1 vote
2 answers
162 views

Metadata Upgrade behaviour in Unlocked Packages

Do ALL metadata types in Unlocked Packages behave the same when the package is upgraded? I mean is every change done locally in the subscriber org overwritten by the new package always or are there ...
user avatar
9 votes
0 answers
322 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 ...
user avatar
5 votes
1 answer
239 views

Can a 2GP package include a post install page?

The sfdx-package.json allows specification of the postInstallUrl, documented as: None. A URL to post-install instructions for subscribers. First generation managed packages support a post ...
user avatar
  • 28.1k
3 votes
1 answer
281 views

Can I delete a Platform Event from a Released 2GP Managed Package?

I am trying to confirm if I can delete a Platform Event after I've released it in a managed package. There is documentation which should outline this: Package and Distribute Your Apps: Components ...
user avatar
  • 8,360
6 votes
2 answers
562 views

Permission set is deployed with unlocked package, but is missing permission. What could be the reason?

I am trying to deploy permission set with only one permission included: AllowViewEditConvertedLeads. I've created the unlocked package, and put this permission set there. Then, when I install this ...
user avatar
  • 63
1 vote
1 answer
104 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?
user avatar
5 votes
1 answer
831 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 ...
user avatar
  • 1,323
1 vote
0 answers
80 views

Version (and keep) source of dependant Unlocked package in seperate folder

As I detail here I am going to install the external libraries I use when building Managed Packages in scratch orgs using dependencies in the sfdx-project.json being installed in an scratc-org ...
user avatar
8 votes
3 answers
2k views

Organize Managed Package Dependencies with Unlocked Packages

I build Managed Packages (with namespaces) for my ISV customers. I use external libraries and Open-Source frameworks like fflib or apex-domainbuilder and find dependency management gets more ...
user avatar
3 votes
2 answers
205 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 ...
user avatar
4 votes
1 answer
746 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", ...
user avatar
  • 2,379
2 votes
1 answer
515 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? ...
user avatar
4 votes
0 answers
225 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 ...
user avatar
  • 91
3 votes
1 answer
124 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 ...
user avatar
2 votes
1 answer
140 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 ...
user avatar
  • 28.1k
9 votes
0 answers
364 views

Upgrade of Unlocked Package changed RecordTypeId of existing records

I have an Unlocked SFDX Package with a CustomObject__c and two Record Types RTypeA and RTypeB. The object and the two types have existed in the package before my update. Before the upgrade all ...
user avatar
8 votes
1 answer
2k 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 ...
user avatar
  • 4,732
9 votes
1 answer
916 views

Should DX Unlocked packages be used for app distribution to customers

Unlocked Packages are just the perfect compromise for everybody working with Salesforce code that he is delivering (for money) to a customer (or two). Managed packages are too much overhead (become a ...
user avatar