Questions tagged [2gp]

Questions about second-generation packaging (2GP). Includes the partner-centric feature of Managed 2GP as well as the customer-centric feature of Unlocked Packages.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

2GP Managed package Custom Field visibility

I've a managed 2GP with some CustomObjects. I set their visibility to public like this: <visibility>Public</visibility> I've also a CustomField on the existing Opportunity object. But the ...
Math M.'s user avatar
  • 33
3 votes
1 answer
80 views

2GP Unlocked package show CustomTab on install?

I have a 2GP Unlocked package that contains a CustomTab. The end goal is to have a managed 2GP, but I'm not there yet. After the installation of the package, if the user want to see the tab in the ...
Math M.'s user avatar
  • 33
0 votes
1 answer
59 views

Custom fields are not getting query from Custom Object after installing a 2GP managed package

I have created a 2GP-managed package that includes an Apex class with SOQL queries. But from one SOQL query, which is on a custom object, I am unable to get the data for custom fields from that custom ...
samba's user avatar
  • 1
0 votes
1 answer
25 views

What's the best way to move a field out of a Salesforce org-dependent unlocked package?

A few scenarios I would like to test : I have a package with a custom field : how can I remove it from the package and restore it as a non-packaged component in the target org, without deleting it ? ...
altius_rup's user avatar
1 vote
1 answer
69 views

Accessing value of a package-protected custom metadata type record from Apex

I have created a package-protected custom metadata type (sf_Assistant_Settings), a field (Value) and a record (API_Key). I use it to store an API Key which is used when making http requests to an ...
LoMaPh's user avatar
  • 111
0 votes
1 answer
59 views

Issue in new CLI command, package version create

After updating to the new CLI version, unable to create new package version. I am not getting any error, in a few seconds it's saying as created but actually it's not creating anything. Let me know ...
Ragul's user avatar
  • 1
0 votes
0 answers
31 views

Do we have to create duplicated default global actions for 2GP?

Problem Description If I include a Layout metadata in my package which includes the default global actions, such as NewTask, NewEvent, etc. there will be an error trying to install the package (I'm ...
Darren's user avatar
  • 46
1 vote
2 answers
27 views

Is there any limitation on the number of dependent packages we can create with one main 2GP package?

I have created 2GP managed package and now we are looking for to create a dependent package. So, I would like to know if there any limitation of how many dependent package we can create with same 2GP ...
Sagar Thoriya's user avatar
0 votes
1 answer
53 views

How to configure sfdx-project file to create proper build scratch orgs for a managed 2GP with custom object/fields?

I have a managed 2GP package. It has custom objects. The whole project is in SFDX format and stays in a single folder force-app/main/default. when running the tests on the Dev Hub - all works well, ...
Искрен Станиславов's user avatar
1 vote
1 answer
72 views

Trouble Installing new 2GP Managed Package from App Exchange

I have developed a managed package that integrates our web application into Salesforce. I recently moved to 2GP packaging and have the new listing active after recently passing Security Review. I ...
bswartz's user avatar
  • 27
0 votes
1 answer
18 views

How to incorporate 2GP package metadata changes which is published but not submitted for security review yet

Below are the steps that I completed so far - Created 2GP managed package, created package version, Promoted package, Connected App. Yet to submit package for security review. Below is my query - ...
SF Dev's user avatar
  • 13
0 votes
1 answer
80 views

How to Fix Security Violation AvoidGlobalModifier in a Promoted 2GP Managed Package for the Security Review

I did wrong and I promoted a non-security-review-ready version in a managed package. I have a global identifier and if I try to create a new version without the it, it triggers a Global/WebService ...
Искрен Станиславов's user avatar
0 votes
0 answers
34 views

Why I do not see my 2nd Generation Package in my Dev Hub Manage package?

Recently I have created a 2nd Gen Package and I have been waiting to see it in my Setup> packaging>manage packages on my Dev Hub org. (Package has already one promoted version) I currently in ...
Искрен Станиславов's user avatar
0 votes
1 answer
75 views

Free and paid tiers for AppExchange app

Is it possible for a paid AppExchange app to charge 0 USD for Basic subscription and > 0 USD for Premium? And activate the Premium subscription using the FeatureManagement functionality. What are ...
Yoko's user avatar
  • 11
1 vote
0 answers
52 views

Packaging CRM Analytics Templates that have a dashboard that uses LWC

Is it possible to package a CRM Analytics Template that has a dashboard that uses LWC? I'm trying to create a 2GP extension package that has a CRMA Template and Lightning Web Components but I'm ...
Ana C. L.'s user avatar
0 votes
1 answer
23 views

Not able to create version after adding 2GP Feature Parameters

I have a 2GP managed package where I added a feature parameter metadata file (Integer). I have created multiple versions of this project until adding the feature parameter metadata files. After ...
bswartz's user avatar
  • 27
0 votes
1 answer
29 views

FMA and LMO communication for 2gp

I have created a 2gp package for FMA which works perfectly when using feature parameters in an unmanaged deployment context. My request is the following: interact to the subscribers while being the ...
Raul Pereyra's user avatar
0 votes
1 answer
58 views

Is it possible to create a managed package containing Integration procedures, flex cards, dataRaptors?

We have development that contains flex cards, omniscripts, integration procedures and some dataRaptos. When I want to create a 1GP package I can't find these components and I don't know if it is ...
NelsonSA's user avatar
0 votes
0 answers
30 views

How to engage subscribers to upgrade up to the most recent package version?

We have new versions of a 2G Managed Package being released on a regular basis. There is an obvious way to notify the subscribers about new version release through the e-mailing or release notes on ...
Evgenii Orekhov's user avatar
0 votes
0 answers
35 views

Sending mobile push notifications to a 2GP-packaged connected app

We have developed a mobile app represented by a connected app in Salesforce, which has been configured for iOS & Android push notifications. We have done this for other connected apps in 1GP ...
Simon Watson's user avatar
1 vote
1 answer
35 views

Queries related to AppExchange Destination org for 2GP

Please guide me for below queries for a 2GP created : Created a 2nd Generation package. Steps followed are as below : Source Org - Partner Developer Edition , Namespace created and linked to partner ...
SF Dev's user avatar
  • 13
2 votes
1 answer
57 views

"Not available for deploy for this organization" when adding a translation

I have used Workbench Translate to translate my managed package to Spanish. When I attempt to create a new package version with sfdx the command outputs: es: Not available for deploy for this ...
dev4life's user avatar
  • 372
0 votes
1 answer
847 views

Error (1): The requested resource does not exist Faced, While creating 2nd generation Managed Package

I am trying to create a second generation beta managed package for learning purpose. Firstly I have created a namespace org where namespace is present. After that I have created a dev hub org in which ...
Parvez Alam's user avatar
0 votes
1 answer
223 views

Error while promoting 2G package

I am facing this below error while promoting 2g package Error (1): The code coverage required to promote this version has not been met. Please add additional test coverage and ensure the code ...
SF Dev's user avatar
  • 13
0 votes
1 answer
78 views

How do you create a custom object for a managed package

I'm creating a new managed package and I'm unsure of how to add a custom object to the package. In 1GP I would create a new object in the org as normal and then retrieve source from org to pull ...
lhh13's user avatar
  • 41
0 votes
0 answers
41 views

Can the pre-requisite features/settings required to install a managed package be reduced over time?

We have some managed package code that requires some features/settings (here shown in the project-scratch-def.json used for second generation packaging): { ... "features": [ ....
Keith C's user avatar
  • 135k
2 votes
1 answer
185 views

Upgrade of 2G Managed Package failing due to Data Not Available (contentasset)

Upgrade of 2G Managed Package failing due to Data Not Available (contentasset): He example problem message from Salesforce email: (app_logo) Data Not Available The data you were trying to access ...
Peter Gascoyne's user avatar
2 votes
0 answers
74 views

What differs between Checkmarx in Partner or Customer Security Portal?

I want to submit a package for security review, and Checkmarx in the Partner Security Portal has been unavailable for some time. At this point, I can either keep trying to resolve why it doesn't work ...
Manuel Moya's user avatar
0 votes
2 answers
323 views

Creating a second generation managed package version gives no error but doesn't create the version

When I try to execute either of these two commands: sfdx package version create -p 0Ho... --code-coverage --installation-key-bypass -b 2gp # or sf package version create -p 0Ho... --code-coverage --...
nstuyvesant's user avatar
1 vote
0 answers
24 views

Package Version Creation Erroring on BusinessProcess

I have a business process on Case which references some Status values that I'd like to package. I have the CaseStatus values in an unpackaged standardValueSet that is being included via ...
Rob Davis's user avatar
  • 166
0 votes
0 answers
61 views

How to uninstall Unlocked Package that contains Experience Bundle

How to uninstall the unlocked package that contains Experience Bundle? Attempt to uninstall fails with the next error *Digital experience name* could not be removed during uninstall. I tried to ...
Siarhei's user avatar
  • 101
1 vote
1 answer
77 views

Subscriber stuck in 2GP Package version

I have the following branching for a package (2gp) ancestry. As per Salesforce documentation, it seems like 5.72 is a dead branch, and we have plenty of customers using 5.72 at the moment. Is there ...
Raul Pereyra's user avatar
1 vote
0 answers
29 views

How to propagate a text value to SF managed package subscribers?

We have a 2G Managed Package which needs to be integrated with an external system via OAuth 2.0 flow to push/pull data from. In other words, SF managed package is supposed to pull data from and push ...
Evgenii Orekhov's user avatar
1 vote
1 answer
87 views

Unexpected flexipage behaviour when created 2nd gen package

I've meet the unexpected problem with flexipage when create 2nd gen package. I've received an error looks like (SObject_Record_Page) Component [console:relatedRecord] attribute [lookupFieldName]: ...
oldgunner's user avatar
0 votes
1 answer
149 views

2gp package with dependency upgrades

Given the following example. 1 - Is it possible to make such reference happen given the fact that the dependent package exist through the same namespace? 2 - if the previous statement is true, then ...
Raul Pereyra's user avatar
0 votes
1 answer
131 views

2gp error when installing unlock package into empty sandbox: Complains re existent Email Template in unfiled-public folder

We've created first version of our unlocked 2gp package. Bunch of custom email templates have been packaged as a part of unfiled$public folder (including MyCustomPackagedEmailTemplate one). Now when ...
wesaw's user avatar
  • 2,980
0 votes
1 answer
56 views

Self certify that the package is lightning ready

How do I certify that my package is Lightning ready? Is that something that we have to raise the case with the community? In the checklist, it shows that I have to "Self-certify listing as ...
Rahul Allada's user avatar
0 votes
0 answers
44 views

'Select Listing Name to Scan' is empty in the Partner Security Portal

As mentioned by @phil in Sending review to the checkmarx where multiple developments are included I have gone to partner security portal. Though the packages are being displayed in the partner ...
Rahul Allada's user avatar
1 vote
1 answer
149 views

Sending review to the checkmarx where multiple developments are included

I have a org that is connected to the partner community. In this org, there are managed packages, unmanaged packages, and various other developments that includes code that is not required for the ...
Rahul Allada's user avatar
0 votes
2 answers
123 views

Is there a way to run tests for a 2GP package in development, without creating a new package version?

I am developing a 2GP package. In order to run tests, I've had to create a new package version and install it in a scratch org (via sfdx). Is there a way to run tests after code changes without having ...
diplodocus's user avatar
0 votes
1 answer
164 views

How do you properly include metadata in an unlocked package for custom fields that already exist in Production?

When creating an unlocked, second-generation package for a new Lightning Web Component, how should you include the requirement for a custom field to exist if that field already exists in the ...
kennyc's user avatar
  • 297
0 votes
1 answer
72 views

Put unit tests in unpackaged metadata?

We were having discussions about putting unit test data in static resources. The concern was that the test data is not needed by the application itself, only the unit tests, so do we want to have this ...
silverglass's user avatar
0 votes
1 answer
296 views

Trying to create 2GP package version - getting "Could not infer a metadata type"

Am starting to build Lightning Web Components that will need to call an external API. Looks like I need to add CSP Trusted Sites and Remote Site Settings. So I created folders in /force-app/main/...
nstuyvesant's user avatar
0 votes
1 answer
216 views

Enable Change Data Capture via Apex

As part of a second-generation managed package, need to enable Change Data Capture (CDC) for the Opportunity object. Can this be done via Apex in a PostInstall for the managed package? Been Googling ...
nstuyvesant's user avatar
0 votes
1 answer
190 views

Permission Sets distributed in a Managed Package

My 2GP includes a handful of custom fields on the Opportunity object. Users (who already have access to Opportunity) need to be able to see them but we don't care whether they modify them because our ...
nstuyvesant's user avatar
1 vote
0 answers
53 views

Associating Custom Settings with a Connected App in a 2GP

In our 1GP, there is a Custom Settings object and a Connected App. On orgs where the 1GP is installed, if you go to Setup -> App Manager, select the Connected App in the list and pick Manage, you ...
nstuyvesant's user avatar
1 vote
2 answers
191 views

Error when creating beta 2GP version - Can’t create patch version

When I type: sfdx package:version:create -p 0Ho... --installation-key-bypass -b 2gp-internal I get an error: ERROR running force:package:version:create: Can’t create patch version. Log a case in ...
nstuyvesant's user avatar
0 votes
0 answers
35 views

CumulusCI 2GP Beta Release Permissions Issue

I have some unit tests failing during a 2gp beta release due to the running test user not having the proper field-level permissions. I've followed the documentation here and defined the permission set ...
Brandon's user avatar
2 votes
1 answer
535 views

Second-generation Managed Package with dependency on first-generation Managed Package

Creating a second-generation Managed Package (2GP) that has a dependency on a released first-generation Managed Package (1GP). This is what I want the version progression for the package Connector for ...
nstuyvesant's user avatar
3 votes
1 answer
136 views

HealthCloud extension can't write HC object. Permissions are ignored

I am developing a Managed Extension Package for HealthCloud. My app is inserting those native HC objects: Board Certification Business License Healthcare Facility Healthcare Provider Health Provider ...
user127294's user avatar