Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [second-generation-packaging]

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
341 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 ...
Robert Sösemann's user avatar
4 votes
0 answers
42 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 ...
davidpanaho's user avatar
3 votes
1 answer
265 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 ...
dzh's user avatar
  • 4,125
2 votes
0 answers
119 views

How does Permission Sets works against Licenses of Managed Package

We have built a Second Generation Managed Package and want it to be available as paid version in AppExchange Portal. So If a user buys it from AppExchange, he/she gets the licenses to use the solution....
S1th's user avatar
  • 143
2 votes
0 answers
85 views

Is it possible to create a second-generation Managed Package with a ConnectedApp without a first-generation Managed Package?

Looking at Salesforce's documentation, it appears the only way to create a ConnectedApp in a second-generation Managed Package is to first create it in a first-generation Managed Package? Is this true ...
nstuyvesant's user avatar
2 votes
0 answers
81 views

How to configure OAuth scopes for connected apps in 2GP

I'm confused about how the configuration of connected apps in a 2GP work. I've found a couple helpful pages in the documentation, but feel I'm still missing some important details. I currently have a ...
Rink Stiekema's user avatar
2 votes
0 answers
443 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?
Robs's user avatar
  • 9,356
2 votes
2 answers
253 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, "...
Eugene Vabishchevich's user avatar
2 votes
1 answer
916 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 ...
davidpanaho's user avatar
1 vote
1 answer
56 views

Creating package version results in XYZ not available in this organization

In trying ot create a 2nd-generation managed package, I created a scratch org, added a custom meta data type, and tried to run the following to create a package version using the following: sf package ...
user1702965's user avatar
1 vote
1 answer
39 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
1 vote
1 answer
497 views

Getting error when generating unlocked package version

I'm trying to create 2nd gen unlocked package version for a Trigger framework which is custom metadata driven. Every time I try to generate a version i'm getting error that custom fields in metadata ...
Maverick's user avatar
1 vote
0 answers
32 views

Select components to include in second-generation package

I am creating a package that shows an externally hosted web app in an Aura component. This component includes a canvas application. The Canvas App URL for the signed request is stored in a connected ...
Rink Stiekema's user avatar
1 vote
0 answers
64 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 ...
TemporaryFix's user avatar
  • 2,946
1 vote
0 answers
217 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&...
Tyler Dahle's user avatar
  • 2,709
1 vote
0 answers
134 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 ...
Anthony Wheeler's user avatar
0 votes
0 answers
18 views

Expected name collision behavior between 2GP managed package and 2GP unlocked package with same namespace

I am trying to understand the expected behavior for the following scenario: Under the same dev hub, I have developed a pair of 2G packages. Both of them share the same namespace (myns): Package A: 2GP,...
jonathanrico's user avatar
0 votes
0 answers
21 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
0 votes
1 answer
39 views

How to Include Custom Metadata with Records in Second-Generation Package?

I'm currently working on packaging an application using second-generation packaging in Salesforce. As part of this process, I need to include custom metadata records along with the packaged components....
chanchal kumar's user avatar
0 votes
0 answers
37 views

Getting error while creating managed package from SFDX CLI

when i run this command - sf package version create --package "MY Package Name" --installation-key-bypass --codecoverage --wait 10 I get following error: Error (1): Multiple errors occurred: ...
Yateen Rattan Bhardwaj's user avatar
0 votes
0 answers
41 views

Does using Function (an Alternative to eval function in js) will impact Salesforce AppExchange Security Review

In our Second Generation Managed Package, we are using Function() as an alternative to Eval Function as mentioned in this link to evaluate an expression in Aura Component. Does it have any impact in ...
S1th's user avatar
  • 143
0 votes
0 answers
222 views

Unable to Create Second Generation Managed Package with Multi-Currency Enabled

We want to create a Second Generation Managed Package which works only on Multi-Currency Enabled orgs and all the Supported Salesforce Editions, so while running the package creation command, we are ...
S1th's user avatar
  • 143
0 votes
1 answer
58 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
0 answers
91 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
63 views

Would Changing the Installation key of the Second Generation Managed Package needs once again approval from Salesforce

We have published our Second Generation Managed Package in AppExchange Portal after approval from Salesforce. But we want to update the installation key of the Package. Would it needs approval once ...
S1th's user avatar
  • 143
0 votes
1 answer
435 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
0 answers
97 views

Getting Debug Logs for 2nd Generation Managed Packages not on AppExchange

I have a 2nd-Generation Managed Package throwing an error. It is installed in an org other than my Dev Hub org, but I have sysadmin access to both. This package is not on the AppExchange, and so the ...
Dylan Bowman's user avatar
0 votes
1 answer
93 views

Error when install 2nd gen package flexipage to scratch org

I've got an error when deploying 2nd gen package to scratch org (Flexi_Page) Data Not Available The data you were trying to access could not be found. It may be due to another user deleting the data ...
oldgunner's user avatar
0 votes
1 answer
129 views

How to scan the Second Generation managed package code on Checkmarx Scanner from Partner Security Portal

I have created a second generation managed package using the dev hub org and namespace org and I have connected the dev hub org in the organizations subtab in publishing tab. But when I tried to login ...
S1th's user avatar
  • 143
0 votes
0 answers
53 views

How do I add logging on salesforce app in 2nd generation managed code?

How do I add logging on salesforce app? Assuming it would not be a good idea to aggregate logs to external system, if we do add logs it is going to sit in the customer's salesforce org. What is the ...
Birey's user avatar
  • 121
0 votes
1 answer
29 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 ...
Patlatus's user avatar
  • 17.1k
0 votes
0 answers
203 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 ...
Andrej Mondocko's user avatar
0 votes
1 answer
57 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 ...
Ragul's user avatar
  • 541