Skip to main content

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
17 views

Cannot create a package version with Flexipage of type EmailTemplatePage

While creating a 2GP package version via the salesforce CLI, I am receiving the following error: You don't have the right to create Lightning pages of type EmailTemplatePage. I made sure that my User ...
Patrick Speranza's user avatar
1 vote
0 answers
41 views

2GP dependent package creation fails with dependency error [duplicate]

We have a 2GP devhub in which we are trying to create packages. Our main package has a released version, and this main package is a dependency for our other package in the same namespace. { "...
Dorgaldir's user avatar
0 votes
0 answers
32 views

How to create 2GP package when using JWT Bearer Type External Credentials

I am trying to create a 2GP managed package that includes named credentials / external credentials. The issue I'm having is related to the Authentication Flow Type of my external credential being 'JWT ...
Daniel Collier's user avatar
1 vote
1 answer
178 views

2GP managed package:version:create No such column xxx on entity

I get the following error when I try to create a 2GP version using SF CLI. No such column 'Mynamespace__Opportunity__c' on the 'Mynamespace__Contract__c' entity. If you're trying to use a custom field,...
Paco's user avatar
  • 21
2 votes
0 answers
32 views

Unlocked 2GP org dependant package

I'am trying to call a apex class method from another apex class which is a part of unlocked org dependant package. Below is the class in package (Class is present as a part of installed package): ...
Rohit's user avatar
  • 2,091
0 votes
0 answers
18 views

Programmatically get information on a packaged Connected App

I have a connected app packaged in a 2GP. Ideally, I wanted to update information (client credential user) on it but I'm fine with just detecting whether this param is present and having it manually ...
Al Cher's user avatar
  • 259
2 votes
0 answers
92 views

Invalid class name value in 2gen packages when running tests in vsCode

We are creating a 2nd gen package in Salesforce. When we try to create a new version with code coverage, so it can be promoted, I get an error on some test files. But a few things happen: If I run ...
Dorgaldir's user avatar
2 votes
1 answer
36 views

Creating 2GP package version error: FlowDefinition entities not supported

When creating a 2GP package version, I get the following error. These entities are not supported: [FlowDefinition] I ran into this same error a long time ago, but I can't remember the details of how ...
Craig Carpenter II's user avatar
1 vote
0 answers
64 views

Seeing Code Coverage for 2GP Managed Package Version

I'm developing a 2nd-Generation Managed Package and working on releasing a new version. Our package depends on one "core" package which is under the same namespace. Note: we develop the &...
Dylan Bowman's user avatar
0 votes
0 answers
34 views

How can I delete a release version of a 2nd Generation Package in Salesforce?

Our 2nd Generation Package recently passed security review under the version '[email protected]'. Subsequently, we made minor changes to the package, including updating icons and modifying objects. ...
Ashish's user avatar
  • 1
0 votes
0 answers
18 views

UninstallHandler not working

Want to have my 2GP do a little cleanup when it is removed. One of the post-install steps clones a template Permission Set and assigns users to the clone. When my 2GP is uninstalled, I am trying to ...
nstuyvesant's user avatar
2 votes
1 answer
48 views

What happens if I run out of checkmarx scan for a managed package?

Below is a picture of a checkmarx scan for a managed package version. What happens if I run out of scans, and how can I get more scans?
Mike's user avatar
  • 29
0 votes
0 answers
62 views

Integrate with a 3rd party website

We currently have a 2GP Managed Package that contains an LWC component that is basically a UI in Salesforce for our API, and that we want to distribute across external orgs. We use Apex Callouts + ...
Alberto's user avatar
  • 81
0 votes
0 answers
30 views

2GP sfdx project structure strategy

We have multiple 2GP managed package coming out of our current monolith 1GP package. which is a better salesforce 2gp project structure strategy, multiple package directory in same sfdx project versus ...
TariqueH's user avatar
0 votes
0 answers
36 views

Unexpected behavior while running test coverage for 2GP package

I have created my application in developer Org and all tests run properly. While creating a 2GP package (beta) without using --code-coverage, the package is creating properly. In order to promote it, ...
Vinit Jogani's user avatar
0 votes
0 answers
29 views

2GP managed package is not listing under Solutions in partner console

We created 2GP managed package from our partner business org and also promoted the version we created. After doing that we linked to our PBO org in the partner console(connect org under technoligies) ...
SFDC-Beginner's user avatar
1 vote
2 answers
178 views

How can I move from a 2nd Generation Package to a 1st Generation package?

I started development of my app using 2nd Gen Packages as recommended but I've hit a couple of bugs - one which is a blocker. However during that time I've used my Package prefix in quite a lot of ...
mjaggard's user avatar
  • 163
0 votes
1 answer
63 views

Order of deployment in 2GP

How can we determine the order in which the metadata is deployed? I have developed a package which relies on EnhancedNotes and has a flow which creates EnhancedNotes. I have retrieved the metadata for ...
LoMaPh's user avatar
  • 83
1 vote
2 answers
128 views

How to pass Salesforce security review for 2nd generation managed package without using "with sharing" while defining class?

We have developed a 2nd generation managed package and submitted our package for security review. But after reviewed by Salesforce, they suggested us some suggestion. One of the suggestions received ...
Kapil Saini's user avatar
3 votes
2 answers
173 views

Is there a way to deploy a Lightning App in a managed package that would be visible to all users by default?

My second-generation managed package deploys metadata for a Lightning App (CustomApplication) that has a Lightning Tab (CustomTab) with a Lightning Web Component. It also deploys a PermissionSet which ...
nstuyvesant's user avatar
0 votes
0 answers
41 views

Second generation Managed Package - ConnectedApp isAdminApproved and permissionSetName

For our second generation managed package, I hoped to pre-configure the ConnectedApp like this so our Permission Set is associated: <?xml version="1.0" encoding="UTF-8" ?> &...
nstuyvesant's user avatar
1 vote
0 answers
20 views

2GP post-installation Lightning Tab - set ConnectedApp.oauthConfig.isAdminApproved to true and assign profiles

For a 2GP, putting together a UI for System Administrators to manually navigate to after installation to automate post-installation configuration. Here's the part I am working on... Sets ConnectedApp....
nstuyvesant's user avatar
1 vote
0 answers
73 views

Second Generation Managed Package Post-Installation Configuration UI on a Lightning Tab

Have read about limitations that package settings (such as in a PostInstall Apex class) for second generation managed packages (like this one Is it possible to programmatically change connectedApp ...
nstuyvesant's user avatar
0 votes
1 answer
58 views

After Enabling the namespace class not executed from LWC

I have a LWC that passed the parameter as an Object, which worked fine. However, after enabling the org's namespace, the apex method was not executed with that object parameter and threw an Internal ...
Naveen Tiwari's user avatar
0 votes
1 answer
151 views

Second-generation managed packages that have been promoted to released can’t be deleted

After attempting to delete a promoted package version I got: Second-generation managed packages that have been promoted to released can’t be deleted I wish to delete this promoted package because it ...
dev4life's user avatar
  • 532
0 votes
1 answer
61 views

How can I create 2GP package version including FSL permissions

I'm using FSL Dispatcher Permissions and FSL Dispatcher License in test class for a scenario to cover code in my apex class. It worked fine when running the test class. But when doing a package ...
Man0har1919's user avatar
0 votes
1 answer
85 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
  • 135
3 votes
1 answer
89 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
  • 135
0 votes
1 answer
362 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
31 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
170 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
  • 83
0 votes
1 answer
118 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
  • 541
0 votes
0 answers
53 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
2 votes
2 answers
55 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
128 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
137 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
72 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
  • 15
0 votes
1 answer
127 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
115 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
1 vote
1 answer
126 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
  • 21
1 vote
0 answers
131 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
45 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
34 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
179 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
60 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
1 vote
1 answer
40 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
  • 15
3 votes
1 answer
270 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
  • 532
0 votes
1 answer
2k 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
477 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
  • 15
0 votes
1 answer
287 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

1
2 3 4 5