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
BharathiBharathi 

Help Needed In Integrating An external WebPage To SalesForce

Hi All,
 
    I am trying to integrate our internal database with salesforce.To Do this I have created a custom button in Contacts Tab.Once the user clicks that button it display the webpage from our server.Once the user queries the data and checks all the records I have to update SalesForce.
 
   Since the user already has logged onto SalesForce I am just passing these two fields {!$Api.Enterprise_Server_URL_120},{!$Api.Session_ID} as querystring and I am writing the following lines of code in my webpage:
 

binding = new SforceService();

binding.Url =Request.QueryString[3];// This is the URL

binding.SessionHeaderValue = new TestSalesForceImplementationUsingGrid021108.SForce.SessionHeader();

binding.SessionHeaderValue.sessionId = Request.QueryString[4];//This is the sessionId

 

I wanted to know if I am doing the right way or is there a better way to accomplish this.Please let me know since this will go into production later on ...............

 

Thanks,

Bharathi