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
mhittmhitt 

declare namespace in apex class (select specific class when 2 exist w/same name)

Hi,

We have 2 classes that exist with the same name - one is custom class and the other from a managed package (and has namespace).  How can I tell the code I want the class with the namespace?  System appears to be linking to the other one and I'm having trouble 'selecting' which one I want to reference to.

TYIA
VinayVinay (Salesforce Developers) 
Hi Matt,

You can use debug logs which code is being used in apex class.  Also managed package apex class will reference in your logs as well can you check ?

Thanks,