The Road to Salesforce

It’s very interesting life as a senior developer, as you get to see the world change around our technology in so many ways.

Although I have been an evangelist of Salesforce for some years, I have yet to step into that world fully. But this is about to change as I plan to fully transition from a .NET developer onto the Salesforce platform, utilizing my skills I have learned along the way.

salesforce photo
Photo by Jon Mountjoy

I look at the current state of development and see that Salesforce have got it right. Back in the days when I first started developing you had no choice but to build a solution from scratch, from creating a server infrastructure though to coding the solution.

Today this should not be the case and is not with Salesforce. You have the core business functionality you need, which can be expanded using clicks not code. When your business process requires something bespoke the coding comes in play with some Apex / JavaScript / SOQL / Lightning and along with it the all important unit test. I especially like the quality of the Lightning Design System for consistency with their new UI.

iphone photoMobile is one of the most important mediums for delivering solutions to a business as people’s lives change, commuting more, working remotely and businesses become more of a social family than a 9 to 5 job #Ohana, which I love to see as people spend a large proportion of their lives at work, so it should be fun, exciting, challenging and rewarding both from a business and a social perspective. just look at the new Salesforce Trailblazer community page to see what I mean.

So where does this fit into my life. Well it fits in perfectly with my outlook on where I should be now and in the future. But I want to share my journey that other developers in my field might find interesting and also if your like me and passed the 50 age mark 🙂

The first stage is to pass the Platform Developer I and Platform Developer II certifications, so I am hard at work studying for these using Trailhead and document resources.

I’m really looking forward to the future with Salesforce and helping others in the community any way I can.

In the next episode I will be giving tips and tricks on how to get the most out of Trailhead and brain hacks to make it all stick, so stay tuned.

Integrating Google Maps V3 into a VisualForce Page

I recently had a requirement to implement a Google Maps view for an Account and thought I would share the code I wrote to implement this functionality.

Firstly I needed to create a Visual Force Page containing the same structure as the default page, which is easy with just one line of code:

<span class="kwrd">&lt;</span><span class="html">apex:detail</span> <span class="kwrd">/&gt;</span>

The rest of the implementation requires a bit of Javascript to convert the UK Postal code into coordinates and then generate the map.

To convert a Postal code into coordinates you need to use the geocoder object:

<span class="kwrd"> var</span> geocoder = <span class="kwrd">new</span> google.maps.Geocoder();
   address: <span class="str">"{!Account.BillingPostalCode}"</span>
   }, <span class="kwrd">function</span>(locResult) {
     <span class="kwrd">var</span> lat1 = locResult[0];
     <span class="kwrd">var</span> lng1 = locResult[0].geometry.location.lng();
     <span class="kwrd">var</span> myLatlng = <span class="kwrd">new</span> google.maps.LatLng(lat1, lng1);
     <span class="kwrd">var</span> myOptions = {
       zoom: 14,
       center: myLatlng,
       mapTypeId: google.maps.MapTypeId.ROADMAP
     <span class="kwrd">var</span> mapComp = document.getElementById(<span class="str">"map_canvas"</span>); = <span class="str">'900px'</span>; = <span class="str">'500px'</span>;
     <span class="kwrd">var</span> map = <span class="kwrd">new</span> google.maps.Map(mapComp, myOptions); 
     <span class="kwrd">var</span> marker = <span class="kwrd">new</span> google.maps.Marker(
             {position: myLatlng, map: map, title: address});  

The code above also generates a map object which can be rendered on the page.

The complete code sample can be downloaded here (don’t forget to put your own API key into the code.


Button Click Admin Podcast

If you are into Salesforce and like I am then I highly recommend you listen to the the Button Click Admin Podcast. Mike and Jared to an amazing job talking to people in the Salesforce community


I especially love hearing at the end of each podcast when they ask the interviewee what their favourite Dreamforce moment was.

Hop along to to subscribe to their podcast. I also recommend reading the 5 tips to landing a Admin job

Copyright FUNCODER 2019
Shale theme by Siteturner