1

I'm fairly new to Salesforce. I've created a package, say OMI. The Package OMI is dependent on the package LTI. For some reason, I can't install LTI (LTI is in development). Can I just install OMI package? I don't care if it works. I just want to install it.

Any leads/workarounds would be helpful. Thanks

1 Answer 1

3

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 compile properly it would fail to install.

Check this one to install packages with dependencies, if using SFDX.

5
  • Thank you for the clarification. one more thing, can i DEPLOY my force-app to my scratch developer edition organisation? because whenever I do, it gives me the error. referenceTo value of 'xyz__c' does not resolve to a valid sObject type. Commented Jan 1, 2021 at 10:32
  • what is the meaning of force-app, does it have any reference to the above two packages you mentioned, if yes then you need to get those dependent packages installed , developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/…, only then you can install yours in your scratch org. Commented Jan 1, 2021 at 10:37
  • yes, actually 'force-app' contains all the source code for the OMI package, which depends on LTI package (Sobjects). My scratch developer org doesn't contain LTI package and I'm trying to deploy the OMI package. Basically I'm trying to find a workaround to deploy OMI (depends on LTI) without having to install LTI, if that's even possible. Thanks. Commented Jan 1, 2021 at 11:00
  • You cannot deploy metadata that has dependencies without first installing those dependencies. As Nagendra Singh said.
    – Phil W
    Commented Jan 1, 2021 at 23:01
  • Thank you for your help. Commented Jan 6, 2021 at 6:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .