-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
3Questions
-
3Replies
Need you help. How to open the SF files from a PHP site
I built a PHP site, and display the information to my customers. The data source is pick up from my Salesforce server. But we didn't buy SF customer portal license. We just connect SF from PHP using SOAP.
It could connect SF and get all data successfully. But we could not open the files saved in Salesforce.
the following is our PHP code.
testsf.php
<?php
define('TEST_MODE',1);
try{
define("SOAP_CLIENT_BASEDIR", "soapclient"); //my
require_once (SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
// connect to sales force
$wsdl = (SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection($wsdl);
$USERNAME='*****';
$PASSWORD='****';
echo "test start <br>";
// login to sf
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
$_SESSION['sessionId'] = $mySforceConnection->getSessionId();
echo "sessionId".$_SESSION['sessionId']." <br>";
$query = "SELECT Id,Name from Account ";
$response = $mySforceConnection->query(($query));
// load OffsetProjects into arrays
foreach ($response->records as $item) {
$id[$item->Id]=$item->Id;
$name[$item->Id]=$item->fields->Name;
}
} catch (Exception $e) {echo $e;}
?>
<div style="float:left; width:650px; margin-right:10px;">
<a href="https://MySFdomain/servlet/servlet.FileDownload?file=******&sessionId=<?php echo $_SESSION['sessionId'] ?>">
https://MySFdomain/servlet/servlet.FileDownload?file=******&sessionId=<?php echo $_SESSION['sessionId']?>
</a>
</div>
<!----end-->
I tried ?sid and ?csssid too, click the link just bounce me to the Salesforce login page. my customers have no username to login salesforce.
Would you please help me to resovle the problem. Any good idea?
Thanks!!
-
- RobinJi
- December 08, 2011
- Like
- 0
- Continue reading or reply
How to open the SF files from a PHP site
I built a PHP site, and display the information to my customers. The data source is pick up from my Salesforce server. But we didn't buy SF customer portal license. We just connect SF from PHP using SOAP.
It could connect SF and get all data successfully. But we could not open the files saved in Salesforce.
the following is our PHP code.
testsf.php
<?php
define('TEST_MODE',1);
try{
define("SOAP_CLIENT_BASEDIR", "soapclient"); //my
require_once (SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
// connect to sales force
$wsdl = (SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection($wsdl);
$USERNAME='*****';
$PASSWORD='****';
echo "test start <br>";
// login to sf
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
$_SESSION['sessionId'] = $mySforceConnection->getSessionId();
echo "sessionId".$_SESSION['sessionId']." <br>";
$query = "SELECT Id,Name from Account ";
$response = $mySforceConnection->query(($query));
// load OffsetProjects into arrays
foreach ($response->records as $item) {
$id[$item->Id]=$item->Id;
$name[$item->Id]=$item->fields->Name;
}
} catch (Exception $e) {echo $e;}
?>
<div style="float:left; width:650px; margin-right:10px;">
<a href="https://MySFdomain/servlet/servlet.FileDownload?file=******&sessionId=<?php echo $_SESSION['sessionId'] ?>">
https://MySFdomain/servlet/servlet.FileDownload?file=******&sessionId=<?php echo $_SESSION['sessionId']?>
</a>
</div>
<!----end-->
I tried ?sid and ?csssid too, click the link just bounce me to the Salesforce login page. my customers have no username to login salesforce.
Would you please help me to resovle the problem. Any good idea?
-
- RobinJi
- December 08, 2011
- Like
- 0
- Continue reading or reply
How to update to Summer 11 version and use the new features
Dear sir,
As we know from the information board, the version Summer 11 has released. http://success.salesforce.com/ideaView?id=08730000000YNjCAAW&c=09a30000000D9xoAAC
That means our company could use all the new feature of API 22.0. But when we try to use the Dynamic Visualforce Component, it occurs an issue. "Error: Unknown component apex:dynamicComponent in ....". As the introudce said, API 22.0 should have include the new feature. http://blogs.developerforce.com/developer-relations/2011/05/dynamic-visualforce-components-in-summer-11.html. I found we could not use <Apex:flow ...> and other new features in VisualForce page.
Would you please tell us what is the matter and why we could not use Dynamic Visualforce Component in production server and sandbox.
-
- RobinJi
- August 30, 2011
- Like
- 0
- Continue reading or reply
Need you help. How to open the SF files from a PHP site
I built a PHP site, and display the information to my customers. The data source is pick up from my Salesforce server. But we didn't buy SF customer portal license. We just connect SF from PHP using SOAP.
It could connect SF and get all data successfully. But we could not open the files saved in Salesforce.
the following is our PHP code.
testsf.php
<?php
define('TEST_MODE',1);
try{
define("SOAP_CLIENT_BASEDIR", "soapclient"); //my
require_once (SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
// connect to sales force
$wsdl = (SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection($wsdl);
$USERNAME='*****';
$PASSWORD='****';
echo "test start <br>";
// login to sf
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
$_SESSION['sessionId'] = $mySforceConnection->getSessionId();
echo "sessionId".$_SESSION['sessionId']." <br>";
$query = "SELECT Id,Name from Account ";
$response = $mySforceConnection->query(($query));
// load OffsetProjects into arrays
foreach ($response->records as $item) {
$id[$item->Id]=$item->Id;
$name[$item->Id]=$item->fields->Name;
}
} catch (Exception $e) {echo $e;}
?>
<div style="float:left; width:650px; margin-right:10px;">
<a href="https://MySFdomain/servlet/servlet.FileDownload?file=******&sessionId=<?php echo $_SESSION['sessionId'] ?>">
https://MySFdomain/servlet/servlet.FileDownload?file=******&sessionId=<?php echo $_SESSION['sessionId']?>
</a>
</div>
<!----end-->
I tried ?sid and ?csssid too, click the link just bounce me to the Salesforce login page. my customers have no username to login salesforce.
Would you please help me to resovle the problem. Any good idea?
Thanks!!
- RobinJi
- December 08, 2011
- Like
- 0
- Continue reading or reply
How to update to Summer 11 version and use the new features
Dear sir,
As we know from the information board, the version Summer 11 has released. http://success.salesforce.com/ideaView?id=08730000000YNjCAAW&c=09a30000000D9xoAAC
That means our company could use all the new feature of API 22.0. But when we try to use the Dynamic Visualforce Component, it occurs an issue. "Error: Unknown component apex:dynamicComponent in ....". As the introudce said, API 22.0 should have include the new feature. http://blogs.developerforce.com/developer-relations/2011/05/dynamic-visualforce-components-in-summer-11.html. I found we could not use <Apex:flow ...> and other new features in VisualForce page.
Would you please tell us what is the matter and why we could not use Dynamic Visualforce Component in production server and sandbox.
- RobinJi
- August 30, 2011
- Like
- 0
- Continue reading or reply
Chatter in Visual force
So I was told that Chatter does not work with Visual force I wanted to know if anyone had a work around for this or was able to get it to work any hints to point me in the right direction would be great?
Sincerely,
Whitney Bunker
- wbunker
- August 05, 2010
- Like
- 0
- Continue reading or reply