Apps Developer Blog

Information for Google Apps Developers

Integrating Google Docs with Salesforce.com using Apps Script

March 12, 2012
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Apps Script

19 comments :

Athar said...

I've been using Google docs for quite some time now, Also found that there are few tools which are freely available in the market, one such tool could be CollateBox http://www.collatebox.com/ , it says easier than excel, better than Google docs.
Gotta wait and watch for this one.

March 13, 2012 at 12:01 AM
Harry said...

Why need salesforce or collatebox because google form can be customizable with html and can manage account in apps. i would rather use pure google apps

March 13, 2012 at 5:29 PM
Jack B. Erhart said...

I would like to know if Google Docs would consider developing the ability to get an email notice when people submit information on a form that has been developed in Google Docs.

March 14, 2012 at 3:46 PM
Ryan Boyd said...

@Jack

Go to "Tools" and then "Notifications".

March 14, 2012 at 3:59 PM
Saurabh Gupta said...

You can also use onFormSubmit event and execute a script whenever somebody submits an event.

March 14, 2012 at 7:15 PM
Jason said...

While testing, I came across this issue wherein I have a checkbox type field in my form which I check. But when I see that submission in Salesforce, the checkbox is not checked. Any idea why? Thanks!!

April 11, 2012 at 4:20 AM
Jason said...

Hi,

We have a form which collects data and pushes it to a spreadsheet and then to salesforce, as per this tutorial.

But we require only certain entries to be pushed to SF from the spreadsheet, whereas the spreadsheet should collect all the entries.

How do we configure this to work? For example, if we want only the higher values from a dropdown to be deemed as valuable leads to be pushed to salesforce, how do we get that done? please help.

April 11, 2012 at 6:38 AM
GreenTeamBeth said...

@Jason

Good question!

When you have a Google Docs form with checkboxes, the corresponding spreadsheet shows the text around that checkbox instead of a True or False value. For example, if you have a checkbox question with the option 'Apples', the spreadsheet shows the responses as either blank if not checked or Apples if checked- as opposed to True or False.

Because of this, your fields in Leads or Cases in Salesforce should be text fields to capture the text around your checkboxes.

You can still use a checkbox in Salesforce, though! Send the Google Docs submission into Salesforce as a text field and add a checkbox field on the Lead/Case. Once you've done that, use a Workflow Rule (Setup>Create>Workflow & Approvals>Workflow Rules) to update your checkbox based on the text that comes in from your Google Doc submission. You can set up the rule to look at your text field on either Case/Lead, and then do a Workflow Action to Field Update the checkbox field.

I hope that helps!

April 11, 2012 at 9:48 AM
Jason said...

Hi Beth,

Thanks so much for your reply on the checkbox issue!!

It would be great if you could also help me with my other issue related to certain entries to be pushed to SF from the spreadsheet.

Thanks again!

April 17, 2012 at 12:56 AM
Todd Thiel said...

I'm currently trying to pass a date value to a SFDC Web-to-Case field.

I've followed the directions above, and everything has worked with the exception of a date range.

I've attempted the following:

var Start_Date = sheet.getRange(row, 6).getValue();
var SFDCSafeDate = Start_Date.getFullYear()+'-'+Start_Date.getMonth()+'-'+Start_Date.getDate();

This has not worked.

Is there a means of norming the date range to fit the 'YYYY-MM-DD' format required by Salesforce?

June 7, 2012 at 11:51 AM
ramazanayyildiz said...

Hi,

resp.getContentText() returns null. How can i understand if it saved or not

June 20, 2012 at 2:51 AM
John Sellers said...

Curious if this no longer functions. I can't seem to get it to work though I am certain I followed the steps in detail. For some reason my trigger doesn't work and send the data into Salesforce.

July 27, 2012 at 2:56 PM
Brandon Phelps said...

Very cool. Do you know of anyone doing the opposite? Take a Salesforce.com record and push it into a Google Doc or Google Sheet? It would be immensely helpful.

August 30, 2012 at 12:00 PM
wylieatwork said...

This is EXACTLY what I was looking for - and simple enough for me to do - so yay! Thanks

October 11, 2012 at 6:14 PM
Terry said...

I was thinking about using Apps Scripts to produce an Invoice out of Force.com. It would be a Document (not a spreadsheet) with some nice formatting, then sent via GMail with a BCC to saleforce to attach it to the contact or account. I was planning on triggering it from Force.com. Is this a good fit? If I am used to Conga, would I be please with the speed/results/process?

January 31, 2013 at 9:57 PM
Todd Thiel said...

"Is there a means of norming the date range to fit the 'YYYY-MM-DD' format required by Salesforce?"

This is an old thread, but my phone started blowing up with the new responses, so I figured I'd add some input.

If you're using Web-to-Case or Web-to-Lead, don't try to format the date. I spent a good part of 2 days trying to figure out how to get SFDC to accept date format.

It has to be in MM/DD/YYYY, and nothing else. Same as it would be for the web-to-lead formatting. Everything else blows up.

The problem with the date field is that unless you have some form of field error-handling. Improper date formats or typo's will fail.

I currently have this working on a Google Form, firing a web-to-case, and web-to-lead to automate my company's 'New Hire' tickets, and it's working smoothly.

February 11, 2013 at 5:34 PM
Rachel Marie McKay said...

If you are interested in even more integration points between Google Apps and Salesforce, check out this Googler Developer creation, The Scoop Composer (http://www.cloudgizmos.com/salesforce-gmail-integration). It gives you contextual Salesforce data at the bottom of every email and allows you to instantly create new records, log emails, and seamlessly traverse between the two systems. Various Google departments have been using it internally, but it is now publicly available on the Salesforce AppExchange and the Chrome Webstore. I hope this was of interest. Sincerely, Rachel (from CloudGizmos).

May 2, 2013 at 3:56 PM
Muhammad Bilal said...

Hi
I need to send data to google spreadsheet from salesforce. Can any one guide me.? Thanks in advance.

June 6, 2013 at 5:23 AM
Integrations said...

Could you please tell me how to post the link of the form and send it in email, link to it on G+, Can you please help on the last Step 2.

June 13, 2013 at 6:51 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Admin SDK 4
  • Administrative APIs 26
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Google+ 3
  • googlenew 1
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms