function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NickDevNickDev 

Develop code for managed package objects in Salesforce DX?

Hi,

We have a managed package. Is it possible to use Salesforce DX to write triggers and classes using objects provided by the managed package?

When creating a scratch org, there is nothing associated with the managed package in there so how can you develop code against objects that are part of the managed package?

Thank you
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi NickDev,

May I suggest you please refer the below link for reference. hope it helps.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
NickDevNickDev
Hi Rahul,

Thats great thank you for this. I did try installing the managed package into the scratch org but I am not sure if I had the right ID at the time.

Can you confirm if the process if the same if the Managed Package is a paid app? 

Thank you