+ Start a Discussion
Zach Gavin DelacroixZach Gavin Delacroix 

Need help with Google API on Apex Class


I would like to know if there is a way for me to populate an address on Contact based on the Postal Code.

For example, if a new Contact is created and if the Postal Code is populated then it will autopopulate the Mailing City, Mailing State/Province and Country. I would like to have an Idea how to achive this through Apex Class. This should not be in VisualForce page as I need it to be populated just after the Contact is inserted.

The idea here is we have a Website (Kind of Web-to-Lead) which only have fields First Name, Last Name, Phone, Post Code and when we create the lead from the Website, it should autopopulate the Address details based on the Postal Code.

It would be great to have a sample and simple code to understand.

Thanks you in advance.