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
Ross McLeod 3Ross McLeod 3 

address finder

Hi All

We have a requirement at work where we need to relate multiple addresses to a custom object. I believe that the address data type is currently not available to use on custom object, however I would like to know if it is possible to access the address finding api that the address on Account uses so that I can build a web component to populate my custom address object?

Many thanks

Ross
AbhishekAbhishek (Salesforce Developers) 
Hi Ross,

Your query is answered in this blogs,

https://success.salesforce.com/answers?id=90630000000478iAAA

https://salesforce.stackexchange.com/questions/99639/how-to-enter-multiple-contacts-in-one-custom-object


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks.
Ross McLeod 3Ross McLeod 3
Hi

Thanks for the response. Sorry if I wasn't very clear, I''m not so worried about how to create the object, what I really need to know is if we can use in APEX the Address lookup features that the Account object has so that I can build my own version of this. Or do we have to go to a third party postcode look up API?

Thanks

Ross
AbhishekAbhishek (Salesforce Developers) 
Hi Ross,

Can you this blog too,

https://developer.salesforce.com/forums/?id=9060G0000005TwAQAU

And if I find any information about the requirement I will let you know.

Thanks.
Ross McLeod 3Ross McLeod 3
Hi

So if I create a Web Component with a Address Line 1 and a Postcode field am I then able to send this to an Apex class which will then find the full address?

Thanks

Ross