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
Paul HowePaul Howe 

How to query our Salesforce data from the front-end

Hi,

We'd like to be able to query some of our Salesforce data from our front-end web app in order to get some information back for the current application user. Specifically we would like to query Salesforce based on a contact role email address in order to determine what Salesforce accoutn they are associated as well as retrieving information from related account opportunities. 

Thanks, Paul
Best Answer chosen by Paul Howe
Vinit_KumarVinit_Kumar

Paul,

Go through my reply on the below post which would help you to know how Rest API works in salesforce:-

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AWWDIA4

If you want to know more about Rest API in salesforce ,go through below docs:-

https://www.salesforce.com/us/developer/docs/api_rest/

https://developer.salesforce.com/page/REST_API

Hope this helps !!

All Answers

Anil SavaliyaAnil Savaliya
Hey Paul,

Check Below and code example there.It might helpfull for you,

http://www.tehnrd.com/show-and-hide-buttons-on-page-layouts/

Thanks,
Anil Savaliya

Vinit_KumarVinit_Kumar
Hey Paul,

Is your web app an VF page or what kind of app it is ??
Paul HowePaul Howe
Hi Vinit,

Its not a VF page (Im not familiar with VF in any case), its just our web application that we would like to communicate from to Salesforce to get information about contacts in our Salesforce database.
Paul HowePaul Howe
Hi Anil,

Thanks for the information. Do we need to install a package on our SF page to be able to make requests for SF data (i.e. sforce.connection.query() ...) ?
Vinit_KumarVinit_Kumar
Paul,

You need to use Salesforce APIs(SOAP or REST) whichever you prefer.

I would suggest to use SOAP in which you need to consume salesforce WSDL file in your webapp and then you can make calls to salesforce and fetch Contacts data from there.

Hope this helps !!
Paul HowePaul Howe
Hi Vinit, thanks so much, do you have a REST example you can point us to to look at?
Vinit_KumarVinit_Kumar

Paul,

Go through my reply on the below post which would help you to know how Rest API works in salesforce:-

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AWWDIA4

If you want to know more about Rest API in salesforce ,go through below docs:-

https://www.salesforce.com/us/developer/docs/api_rest/

https://developer.salesforce.com/page/REST_API

Hope this helps !!

This was selected as the best answer
Paul HowePaul Howe
Great, thanks so much for those resources Vinit
Vinit_KumarVinit_Kumar
Happy to help Paul :)
sony sonusony sonu
hi vinit_kumar   i have a small query??? 
sony sonusony sonu
hai  paul i have a small query!!!