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
Nithesh NNithesh N 

Address Object in Salesforce?

Is there any way we could access Address Standard object in Salesforce UI ? I may need to create a custom Address object, But if i could use the existing one, it would be great. There is a standard Address object according to the documentation , but only listed in SOAP API guide. 

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_address.htm

 

Best Answer chosen by Nithesh N
Nithesh NNithesh N

Yes, It seems we can get that standard object. It is mentioned in the docs (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_address.htm) itself. Once "Field Service Lightning" is enabled,  Address Standard Object is available in our org. 

 

All Answers

Raj VakatiRaj Vakati

No.

“Address” in Salesforce can also refer to the Address compound field found on many standard objects. When referencing the Address object in your Apex code

You need to do it with apex as shown below 
 
Address add = [Select Id , Name,BillingAddress from Account Limit 1].BillingAddress ;
String st =add.Street ;

 
Nithesh NNithesh N

Yes, It seems we can get that standard object. It is mentioned in the docs (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_address.htm) itself. Once "Field Service Lightning" is enabled,  Address Standard Object is available in our org. 

 

This was selected as the best answer