7
votes
Accepted
Use Object from another manage Package without making my own package dependent to it
I have never tried this before. But using dynamic objects you can do this. Here are idea to get you started.
Store the package details and object, field in some custom setting or custom label. Now ...
7
votes
fflib as Second Generation Managed Package (2GP)
I'll start this answer by recognizing that questions which solicit opinions, rather than objective answers, are frowned upon on StackExchange.
Having said that, the question was framed beautifully and ...
5
votes
fflib as Second Generation Managed Package (2GP)
G'day folks. Apologies for being a bit late to this discussion.
@lightxx -- There are pros and cons about separating the fflib classes out to a new package.
All things being equal, it makes sense to ...
5
votes
Call a static method in managed package dynamically
The only way to call dynamic methods is to use instance logic. So you'll need an interface layer here:
public interface StaticMethod { void execute(); }
Then your implementations would look ...
5
votes
Accepted
How to get dependent classes for a trigger?
You have not specified if you want this programmatically, so my guess is that you can get all dependencies with change sets.
Create a change set, and then add your trigger on it. Click on "View/Add ...
4
votes
Offline tool that can show dependencies between different metadata files
There are a number of tools outlined in Apex static code analysis, although most of them are online. In particular the post by Robert Sösemann on the static code analyzer that integrates with Eclipse.
...
4
votes
How to get dependent classes for a trigger?
One programmatic way to do this is to use the Tooling API's SymbolTable. This complex Type includes the externalReferences.
The externalReferences will detail any dependencies that the ApexClass or ...
4
votes
SOQL query of MetadataComponentDependency: "Dependency API is not enabled"
As per Vlad's answer, the Dependency API is now GA in Spring '20 (v48.0).
Clarification provided by Vladimir Gerasimov about the current Winter '20 Beta functionality:
Apologies for the confusion. ...
3
votes
Accepted
Can I Install a Salesforce Package, that is dependent on another package, without installing the dependent Package?
By dependent if you mean your OMI package has any references (class, page, components etc) to LTI, then NO. Compilation has to happen properly before a package gets installed.
If the package does not ...
3
votes
Can we add lwc component's dependency on a custom object of 3rd party apps?
Per your comment:
that custom object is managed. And that managed package is paid. And it is not installed on my developer edition ( where I am deploying ) and I don't want to install that 3rd party ...
3
votes
Accepted
SOQL query of MetadataComponentDependency: "Dependency API is not enabled"
In case anyone is following this: Dependency API is now (Spring '20) available in all environments including production orgs.
2
votes
Accepted
Is it possible to create managed package referring to Org's custom objects?
This is not possible. Unmanaged, First Generation, and Second-Generation Managed Packages must stand alone. Only Unlocked- and Org-Dependent Packages support depending on unmanaged metadata (the ...
2
votes
Accepted
Managed Package: How to get rid of dependency from Territory Management feature
Finally we've figured it out.
All our code base in repository has already been cleaned up from territory dependencies. But at the same time there was some garbage left right on packaging org itself (...
2
votes
Managed Package: How to get rid of dependency from Territory Management feature
As it's been stated before, you need to engage Partner Support. Once a managed package has a dependency on a feature, and a version with that dependency is uploaded, it cannot be removed by the ISV. ...
2
votes
Remove managed package dependency
It may be possible if you roll back the version that caused the dependency to a beta package. This is only allowed if no subscribers have that version or later installed. You'll also need to create a ...
2
votes
Remove managed package dependency
if you release a package which is dependent on package B then you cannot remove that dependency easily. You have to connect to salesforce to remove that dependency.
2
votes
Accepted
How to move third party code (FFLIB) out of a unlocked package that has references to FFLIB?
Those instructions imply that you are going to move the dependent code out to a new package (i.e. your code will move, but the fflib code will remain where it is), rather than moving the dependency ...
1
vote
Package dependencies
Dependencies are installed in the order specified in your JSON. Make sure Affiliations comes before NPSP.
{
"package": "[email protected]"
},
{
"package": &...
1
vote
DX Standard Value Sets not included in unlocked package so dependencies on packages Standard Value Sets are not recognized
The current solution here is "unpackaged metadata" or making it an org-dependent unlocked package.
David Reed goes into more considerations in his blog, but the gist of it is that unpackaged ...
1
vote
Accepted
How do I define a dependency in 2GMP for certain Salesforce feature like Quote object?
The line "definitionFile": "config/project-scratch-def.json", should be included in the sfdx-project.json file as following
{
"packageDirectories": [
{
...
1
vote
Accepted
Why does package version creation care about installed packages in org in certain scenarios and not others?
You'll need to specify package b as an additional dependency to package c in order for everything to work correctly. All dependencies must be explicitly listed in order of dependency in order to ...
1
vote
Offline tool that can show dependencies between different metadata files
I don't think any such tool exist as of now specifically for salesforce. The spectrum of salesforce offline tools is very limited. Also note that this kind of information can be easily found on ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
package-dependency × 35managed-package × 11
unlocked-package × 11
salesforcedx × 10
package × 8
package-install × 6
metadata × 5
tooling-api × 3
second-generation-packaging × 3
deployment × 2
unmanaged-package × 2
territory-management × 2
beta-managed-package × 2
2gp × 2
feature-activation × 2
education-data-architecture × 2
apex × 1
lightning-aura-components × 1
lightning-web-components × 1
soql × 1
metadata-api × 1
salesforcedx-cli × 1
appexchange × 1
scratch-org × 1
migration-tool × 1