• Varun Guruvugari
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
This link:
https://help.salesforce.com/apex/HTViewSolution?urlname=Spring-15-Access-Address-and-Geolocation-Compound-Fields-Using-Apex&language=en_US

says I can access Address compound fields from Apex.  I can access Account address fields but on Leads I get the error "Invalid field Address for SObject Lead".  This error when my trigger runs.  There is no error in the Developer console.  Not sure if this is by design or if I amdoing something wrong.  

I have tried just referencing the field, assigning the field to an Address type field, and looking it up in a SOQL query.  I can look the field up in the Execute Anonymous console and it works fine.

Any idea what I am doing wrong?  

Thanks!!