Blogs

  • Retrieve the geographical coordinates of an address.

    The Geocode() Apex method accepts a single address and provides the geographic coordinates along with the formatted address. If you need to obtain the geographical coordinates for multiple addresses, you should employ the BatchGeocode() Apex method. Function Signature Where, Example Code This code fetches the geographic coordinates of the Salesforce headquarters. The output also provides…

    Read more…

  • Retrieve data hosted by Salesforce.

    The GetHostedData() Apex method retrieves geographical IDs for properties and displays them in Salesforce Maps. We accomplish this retrieval in two requests while using the same method. The first request returns geographical IDs for properties that Salesforce Maps hosts for a specified area and filter criteria. The second request takes these geographical IDs and display parameters, such as…

    Read more…

  • Custom Adapter for Salesforce Connect on Stack Overflow

    This example illustrates how to support external lookup relationships and multiple tables. An external lookup relationship links a child standard, custom, or external object to a parent external object. Each table can become an external object in the Salesforce org. For this example to work, create a custom field on the Contact standard object. Name…

    Read more…