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
coolKarnicoolKarni 

Integrate sf with other org

Hi,

Can any one explain me how can we integrate Salesforce with other applications using other programming languages. For Instance I have a .Net application now I need to integrate it to salesforce. I know we can only integrate SF with other applications using webservices. It is possible by generating Apex classes from WSDL provided and access there methods using user credentials and endpoint urls etc. But without doing this is that possible to directly integrate other application with SalesForce.

Thanks in advance.

Pradeep_NavatarPradeep_Navatar

I think, it is not possible to integrate Salesforce with other programming languages without using WSDL. Are you facing some problem in integration? Just to give you an idea, i have posted a code which generates leads from an application hosted on a third party server. 

 

 

<?php

// Lead Creation

// SOAP_CLIENT_BASEDIR - folder that contains the PHP Toolkit and your WSDL
// $USERNAME - variable that contains your Salesforce.com username (must be in the form of an email)
// $PASSWORD - variable that contains your Salesforce.ocm password

define("SOAP_CLIENT_BASEDIR", "../../phptoolkit/soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');
require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');
require_once ('../userAuth.php');

$fname = $_POST['fname'];
$lname = $_POST['lname'];
$company=$_POST['company'];
$industry=$_POST['industry'];
$address=$_POST['address'];
$phone=$_POST['phone'];
$fax=$_POST['fax'];
$email=$_POST['email'];

try {
  $mySforceConnection = new SforceEnterpriseClient();
  $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
  $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
  $sObject = new stdclass();
  $sObject->FirstName = $fname;
  $sObject->LastName = $lname;
  $sObject->Company = $company;
  $sObject->LeadSource = 'Web';
  $sObject->Status = 'Open - Not Contacted';
  $sObject->Industry = $industry;
  //$sObject->Address = $address;
  $sObject->Phone = $phone;
  $sObject->Fax = $fax;
  $sObject->Email = $email;
 
  echo "**** Creating the following:\r\n";
  $createResponse = $mySforceConnection->create(array($sObject), 'Lead');

  $ids = array();
  foreach ($createResponse as $createResult) {
    print_r($createResult);
    print_r('<br>');
    array_push($ids, $createResult->id);
  }
/*
  echo "**** Now for Delete:\r\n";
  $deleteResult = $mySforceConnection->delete($ids);
  print_r($deleteResult);

  echo "**** Now for UnDelete:\r\n";
  $deleteResult = $mySforceConnection->undelete($ids);
  print_r($deleteResult);
*/

} catch (Exception $e) {
  echo $mySforceConnection->getLastRequest();
  echo $e->faultstring;
}
?>
 

coolKarnicoolKarni

The thing is that i have worked on integration of SF with other CRMs using apex & .Net as programming languages but have never integrated directly without using wsdl.

On the other day when my client asked me i replied "NO" but had a doubt ,whether it can be done  any anyother means....

Any ways thanks for ur reply pradeep.

 

Thanks

shaan