+ Start a Discussion
honda57honda57 

Cannot find the Child Relationship Name for Lead History

 

I can't find this child relationship name.  How do I find it?  I tried looking at the WSDL and can't find it in there...

sfdcfoxsfdcfox

It's Histories. Like this:

 

system.debug([select id,(select id from histories) from lead limit 1]);

 It's in the WSDL, as long as at least one field is selected for history tracking.