Skip to main content
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 ...
Tushar Sharma's user avatar
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 ...
Vivek M. Chawla's user avatar
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 ...
ImJohnMDaniel's user avatar
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 ...
Adrian Larson's user avatar
  • 151k
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 ...
Renato Oliveira's user avatar
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. ...
Daniel Ballinger's user avatar
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 ...
Daniel Ballinger's user avatar
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. ...
Daniel Ballinger's user avatar
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 ...
Nagendra Singh's user avatar
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 ...
David Reed's user avatar
  • 93.7k
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.
Vladimir Gerasimov's user avatar
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 ...
sfdcfox's user avatar
  • 502k
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 (...
wesaw's user avatar
  • 3,150
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. ...
sfdcfox's user avatar
  • 502k
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 ...
sfdcfox's user avatar
  • 502k
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.
Manjot Singh's user avatar
  • 3,586
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 ...
sfdcfox's user avatar
  • 502k
1 vote

Package dependencies

Dependencies are installed in the order specified in your JSON. Make sure Affiliations comes before NPSP. { "package": "[email protected]" }, { "package": &...
sfdcfox's user avatar
  • 502k
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 ...
Derek F's user avatar
  • 64.2k
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": [ { ...
Patlatus's user avatar
  • 17.8k
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 ...
sfdcfox's user avatar
  • 502k
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 ...
AtulRajguru9's user avatar
  • 9,160

Only top scored, non community-wiki answers of a minimum length are eligible