Blogs

  • An Overview of Apex REST

    You can make your Apex class and its methods accessible to external applications via the REST architecture. To achieve this, you need to annotate your Apex class with @RestResource, making it available as a REST resource. Additionally, you can annotate your methods to expose them through REST. For instance, you can use the @HttpGet annotation…

    Read more…

  • 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…