Skip to main content

Questions tagged [second-generation-packaging]

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
336 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
256 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,106
2 votes
0 answers
79 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
424 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,346
2 votes
2 answers
252 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
881 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
0 answers
108 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
  • 133
1 vote
1 answer
55 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
0 answers
81 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
1 vote
1 answer
486 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,936
1 vote
0 answers
216 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
131 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
1 answer
37 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
36 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
40 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
  • 133
0 votes
0 answers
179 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
  • 133
0 votes
1 answer
49 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
78 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
59 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
  • 133
0 votes
1 answer
412 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
86 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
0 answers
42 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
  • 136k
0 votes
1 answer
87 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
114 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
  • 133
0 votes
0 answers
52 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
  • 16.8k
0 votes
0 answers
201 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
  • 471