+ Start a Discussion

Develop code for managed package objects in Salesforce DX?


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.

Rahul Kumar
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