Archives

Salesforce Export Database Records to CSV for Batch Upload

Exporting of Database records to csv can be done using: 1. OpenCSV CSVWriter 2. FileWriter 1. OpenCSV CSVWriter 2. FileWriter

Rate this:

Read More

Salesforce WSC Partner Connection Session Renew when Session Timeout

Implement SessionRenewer Test SessionRenewer

Rate this:

Read More

Salesforce List View converted to Tab

Converting a List View to a Salesforce Tab is as easy as to create a Visualforce page. Just specify the list view Id and add a custom Visualforce tab:

Rate this:

Read More

Salesforce Integration JUnit Testing Using Spring

Spring Configuration to test integration to Salesforce using PartnerConnection, EnterpriseConnection and BulkConnection. Create a properties file called salesforcesync.properties with all the login details salesforcesync.properties Salesforce Authentication Spring Configuration Junit test class to assert login was successful

Rate this:

Read More

Salesforce Streaming Api using Spring MVC

Check out my Salesforce Streaming Spring MVC project http://cloudsole-streaming.herokuapp.com/ Find the code here: https://github.com/thysmichels/cloudsole-force.com-streaming-web Using Salesforce Streaming in Java project: Push Topic Factory Streaming Service

Rate this:

Read More

CloudSole Salesforce REST Feed

I was looking at building a easy way to POST information from your salesforce org to my Public Feed. This feed can be used to publish and data from you salesforce org to the public. Below is some code sameples on ways to POST to the Public Feed: curl: Apex code: Note: Make sure to […]

Rate this:

Read More

Java Code: Apex Bulk Loading MySQL

Creating a bulk sync between MySQL and Salesforce using the Salesforce Bulk API. I created a Bulk Loader that connects to MySQL exports data to CSV and imports it into Salesforce. In this example I am syncing the Lead object. package com.thysmichels; import java.io.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.*; import […]

Rate this:

Read More

Java Code: Salesforce Export into Excel

Export Salesforce records into Excel. In my example I read records from Excel and also from Salesforce. Reuse my code by providing your own username and password to your Salesforce org to create more advanced SFDC to Excel integrations. You will need to download or add jxl to your maven project: http://mvnrepository.com/artifact/net.sourceforge.jexcelapi/jxl package com.thys.michels;  import […]

Rate this:

Read More

Apex Code: Visualforce Google Maps Address mapping

Account: Chuck Norris ~ salesforce.com - Enterprise Edition

Below is the code to display Google map of the Billing Address of an Account. Add the Visualforce page to your page layout. <apex:page standardController=”Account”> <head> <script type=”text/javascript” src=”https://maps.google.com/maps/api/js?sensor=false”></script&gt; <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script&gt; <script type=”text/javascript $(document).ready(function() { var myOptions = { zoom: 15, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false } var map; var marker; var geocoder = new […]

Rate this:

Read More

Web-to-Lead Lead Not being Created – Capture Page: Not available.

If you Web-to-Lead form is not creating leads you may want to enable debugging in your form. Add the following lines to your html page: <input type=”hidden” name=”debug” value=1> <input type=”hidden” name=”debugEmail” value=”youremailaddress@email.com”> When you click submit you may get the following message: Reason: Your Lead could not be processed. null Lead Capture Page: Not […]

Rate this:

Read More

Follow

Get every new post delivered to your Inbox.

Join 215 other followers