20

Just want to update this answer with the latest process, this is built referencing the Google Service Account oAuth instructions (look at REST code) (credit to Jai-Singh for original Salesforce code): Set up an app in Google's Developer Console. Make sure the API you want to use is turned on for this App. You will need the "scope" URL for the specific ...


11

As of Winter '17 there are new JWT methods baked in to Apex. One hoop you have to jump through is getting your key from Google into a Java keystore (JKS) file. Some general info on getting a JKS file is in the Salesforce docs. The following creates keystorefile.jks with a certificate named google_cloud, and password notasecret (what Google exports), which ...


7

You could definitely do something like this with the flexibility of VF and Apex you could use Google charts, Visualforce charting tags or even a different visualization engine like d3js.org. Here's a cookbook recipe, for instance: http://developer.force.com/cookbook/recipe/easy-visualforce-charts-with-javascript-remoting--google-charts-api


7

Yes, you can SSO into one or more target Salesforce orgs via OpenID Connect from Google: http://help.salesforce.com/apex/HTViewHelpDoc?id=sso_provider_openid_connect.htm&language=en_US A couple of helpful blogs that walk you through this http://dice.neko-san.net/2014/01/using-google-as-an-open-id-connect-authentication-source-for-salesforce-com/ http:...


6

Edit would be easy, it's just {object id}/e. Delete is trickier as it requires calling deleteredirect.jsp and passing confirmation token... What you need is an URLFOR function call. These might help too: http://salesforcesource.blogspot.com/2008/12/urlfor-function-finally-explained.html www.salesforce.com/us/developer/docs/pages/Content/...


5

//code block of the method that creates the attacment public void createattchment(string data,string parentid,string path){ Attachment attachment = new Attachment(); attachment.Body = EncodingUtil.base64Decode(data); attachment.Name = path; attachment.ParentId = parentid; attachment.contentType='application/zip';//can we set as application/zip and ...


5

Finally figured this out: you must contact Salesforce.com Support to have API Access to the GoogleDoc object enabled for a given org. Once this was done, everything worked as expected.


4

First and foremost this is not a salesforce question. I think that this is not possible to do. Google API use canvas and similar techniques to draw a chart, and create his own dom elements to draw the table. There are no way to translate that rendering into a PDF in a browser by now.


4

For a properly formatted JWT to be generated, it's important to note that this line of code: JWT = JWT.replaceAll('=',''); Needs to be changed to this: JWT = JWT.replaceAll('=',''); JWT = JWT.replaceAll('\\+','-'); JWT = JWT.replaceAll('\\/','_'); The reason is base64 can also produce a + or /. They need to be replaced with dash and underscore ...


4

As dphil pointed out, using Google Geocoding API in a shared environment won't work. Solution: Create an API Project: in Google Developer Console, just click on Create Project button. Assign Geocoding API to this project: click on 'APIs & auth' on the left menu, then search for Geocoding and click on the 'On/Off' button. Assign a Key for server ...


4

It is possible. Your customer portal works as any other site for Google analytics. You only have to add the javascript snippet that Google Analytics gives you when you are configuring your account. It is always a good idea to put this code on a component to include into all your site pages. Also you could use templates to add it to all pages at once. ...


3

I think this relates to the domain that the browser is operating from: na15.salesforce.com - default UI c.na15.visual.force.com - Visualforce page When you first grant access to Google Docs (starting from the default UI page) you are asked: The site na15.salesforce.com is requesting access to your Google Account for the product(s) listed below. and ...


3

Seth Carstens has released some updates, which address the deprecation of the GoogleMaps API. His solution is some Visualforce and code external to the package, since it seems that Find Nearby Accounts is no longer actively supported as a package. If you have the managed package version, you will need to uninstall the managed package and install the code ...


3

Just create a new click listener for the marker (assuming you know the account ID): google.maps.event.addListener(marker, "click", function() { window.location = '/' + accountId; });


3

Wow debugging email services is hard! After alot of trial and error I was able to solve my problem. Thanks for the suggestions @techtrekker and @Abhinav but placing a system.debug in the service did not help as the class was not being called. The reason for this was the 'Accept Email From' needs to contain the domain of the original sender. For example ...


3

It seems like it would be easier to display the tree vertically instead of customizing it in its current orientation, but of course let us know if that is an issue. Here's some other users experiences with this problem. https://stackoverflow.com/questions/4790205/is-there-anyway-to-vertically-align-the-boxes-in-google-org-chart-visualization


3

With api v29 you can now use the CombinedAttachment object to retrieve Gdocs along with Notes & Attachments. Still need to call support to enable API access for Google Docs though. http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_combinedattachment.htm


3

Sure. Here's a Java framework on GitHub that should provide an example for you https://github.com/forcedotcom/SalesforceCanvasFrameworkSDK it even has in the readme how to build it locally before deploying it to "heroku or any other server"


3

If you have access token , you can upload the file on google drive using this apex code Http http = new Http(); req = new HttpRequest(); req.setMethod('POST'); req.setEndpoint('https://www.googleapis.com/upload/drive/v2/files?uploadType=media'); req.setHeader('content-type', 'text/csv'); req.setHeader('Authorization','Bearer '+...


3

Will I only be able to login with Google if I sign-up with a trial using Google authentication? No, They read only your First Name, Last Name and basic info which is required to fill right section of this signup page using google,facebook. Will I get to pick a username (i.e. me@myco.com) or will it be some strange "key" or long auto-generated string? As ...


2

Here is some advice (sorry no code). See if you can get it to work with plain old HTML/JavaScript first on harcoded addresses Then build the Apex code to retrieve the values you need to substitute in. If you get those to both work independently then you should be able to "hook" their logic together.


2

It appears that you're storing the binary data of the zip inside a string. This is naturally problematic, because salesforce.com can't handle binary strings (all strings are re-encoded to utf-8 automatically, as in Java). This will corrupt the data. Instead, you will probably have to retrieve the data as a blob using a PageReference. You can use ...


2

Cirrus Insight is one of my favorites: http://www.cirrusinsight.com/ Contacts is available now, Calendar is coming soon.


2

Do you have any more info, if you look in the developer console of the browser, do you see any errors or warnings? First try adding a </script> element to the script tag where you are loading the google maps script from, some browsers may not like that to be missing. Also maybe there is a https/http issue, try changing http://maps.google.com to use //...


2

You can use the SpeechSynthesisUtterance from the Web APIs. Note that this is not supported in Internet Explorer, so if your users don't use Firefox, Safari, or Chrome, they won't get to hear the voices. There's also libraries like meSpeak which should also add support for Internet Explorer users, if that's important, but personally, I find the Web API ...


2

This is the intended behavior of the "Test-only" URL - it shows you the user attributes returned by the Auth Provider, which helps with writing/debugging the Registration Handler. For an actual Sign-In, you have to use the "Single Sign-On Initialization URL" (.../services/auth/sso/AuthProv). This should redirect you back to Salesforce with a signed-in user.


2

This looks like to be an issue which was fixed with Summer '17, that may have resurfaced. Refer to this known issue here. You may like to reach out to Salesforce support to verify and get details on this, if that's the case. Update: The issue specifically seems to be in the SSO flow as if you login using the my domain url and use your salesforce ...


1

I see you posted this here as well (not sure if it's answered there). From that thread, it's clear that you are using the wrong repo URL. It should be http://sfdc-gae-sso-delegated-auth.googlecode.com/svn/trunk/ and NOT https://code.google.com/p/sfdc-gae-sso-delegated-auth/source/checkout


1

crop1645, there's usually no great solution in situations like this. Definitely not ones supportable by Salesforce. So, with that said, maybe you can tweak Option 3 to work like this: Extend your component as you described Include the standard related list, and do render it Hide the standard list using style="display:none" Use JavaScript to "lift" the ...


1

This following works for me. Check your code for syntax errors, or try out my code. All I did was take your code and then cleaned up the functions to make sure everything syntactically looked good. <apex:page standardStylesheets="false" > <div id="map-canvas" style="min-height: 400px" ></div> <script type="text/javascript" src=...


Only top voted, non community-wiki answers of a minimum length are eligible