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
D J RobertsD J Roberts 

Working with APEX in a ScratchOrg that uses fields shared by a managed package

Hey guys, working on a project to deploy a large amount of Code to a scratch org for a project, but the code uses some fields that are also used by a managed package. When pushing the project to a scratchOrg, I'm getting some nasty errors, and the deployment is failing. Has anyone else dealt with this kind of issue? If so, what did you do to get the code into a scratch org and work on the modifications? 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Roberts,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/215148/pushing-to-scratch-org-converting-existing-org-to-dx

https://developer.salesforce.com/forums/?id=9060G0000005rkXQAQ

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas