Think. Build. Salesforce Solutions.

Salesforce Consulting Services across Salesforce Clouds & Across App Lifecycles

Blog

Salesforce Integration with SurveyGizmo

By |2020-07-17T10:17:02+00:00January 31st, 2015|

Survey tools provide easy and cost-effective ways of collecting information from a large number of individuals. Instead of collecting data on a Salesforce portal, you can integrate your survey tool with Salesforce and insert data onto a custom or standard Salesforce object. In this article, I will give you pointers on how to insert data from Survey Gizmo (www.surveygizmo.com) into salesforce objects. Obviously you can do the same with other survey tools too (as long as APIs are exposed).

There are 3 basic steps to complete this integration:

  1. Create a survey/form in SurveyGizmo.
  2. Create the APEX page which will call SurveyGizmo API.
  3. Insert all data from API to SFDC objects.

Apply check to not insert duplicate data in SFDC data.

To start with it, we need to create a custom visualforce page to consume Survey Gizmo API and apex controller to synchronize Survey Gizmo.

surveygizmo salesforce integration

The API provides the data in the JSON format that can be used at our visualforce page. The integration page contains three filtration fields Survey ID, From Date and To Date.

Data from SurveyGizmo API

surveygizmo salesforce integration
Survey ID -> to get the data of a particular survey. [Mandatory]
From Date to Date -> date range for the records creation date in survey gizmo. [Optional]

Visualforce page to synchronize data

surveygizmo salesforce integration

For a particular survey, the user can also further filter the records for synchronization by providing from Date and to Date to filter on the created date of records in Survey Gizmo.
After applying all the filters, users click on the sync data button & fetch records from Survey Gizmo. The custom controller inserts the survey records to a custom object and contact & account objects.

Survey Gizmo provides the URLs for attachment that were uploaded at the time of creating a record in Survey Gizmo. To save these attachments to the respective record in Salesforce you will make HTTP requests for each individual record because there is a limitation of 10 callouts to an HTTP request or an API call. To overcome this problem we created an apex job which is started after the Survey records had been synced in Salesforce.

NOTE: You can monitor the attachment sync status at Setup-> Monitor -> Apex job.

Custom Button: we can create a Salesforce custom button that can be used to display on the standard list view page to perform some specific operations like call JavaScript function, open a custom visualforce page, etc. We used this to write functionality to assign multiple records from the standard list view of custom objects to a user.
This button is used to assign bulk records to a user for some specific processing. User can select the number the records from the list by checking the checkbox available with every record in Salesforce in standard List View. After selecting the records user can click on the button that will redirect it to a custom visualforce page & it will list all the selected records from the list view.

4 Comments

  1. Kartik Sharma August 25, 2020 at 4:33 am - Reply

    Hi,

    I have gone through your blog and I am sure that it will definitely help others.

    • Mirketa Inc September 2, 2020 at 6:10 am - Reply

      Thanks so much. We appreciate the kind words.

  2. Rajesh December 24, 2020 at 10:01 am - Reply

    Nice Post. Thanks for sharing with us.

  3. Isyncsf April 26, 2022 at 8:22 am - Reply

    Awesome article on Salesforce Integration with SurveyGizmo.

Leave A Comment