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
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.