function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sujit KumarSujit Kumar 

Accessing SalesForce through Javascript/Jquery on Gmail Gadget

Hi there,

 

I have a requirement where I am trying to access/update the salesforce data from javascript/jquery written in a Gmail Context Gadget. Please let me know if any one has come across this.

 

Any help/guidance will be appreciated.

 

Thanks

Sujit

MartinHaagenMartinHaagen

Hi Sujit,

 

you should be able to do this by using either of the SOAP or REST apis. However if you are using SOAP you will need to construct and parse the full SOAP envelopes your self. The REST API is probably a better match here. 

 

There is some browser security settings that will block you JS to call other remote sites than where your JS-scripts are hosted. If you scripts are not hosted on Salesforce you will probably need to use some kind of proxy based with the supplier where your script is hosted. I'm not familiar with Gmail Gadget creation so I cannot help out there. 

 

I hope this will have you looking in the right direction!