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
crm123crm123 

Salefsorce and flex: how to configure network proxy

Our browsers are configured to reach the internet via a proxy server, there is no direct connection to the internet. Is there something that should be configured on the flex/salesforce toolkit to allow the requests to go in via the proxy? The application itself is very simple, follows the demo seen on the salesforceflex toolkit video.

 

 

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication applicationComplete="init()" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:salesforce="http://www.salesforce.com/" xmlns:local="*">
<salesforce:AIRConnection id="sandbox" />
<mx:DataGrid id="contactgrid" left="0" right="0" top="0" bottom="0">
</mx:DataGrid>
<mx:Script>
<![CDATA[
import com.salesforce.results.QueryResult;
import com.salesforce.results.LoginResult;
import com.salesforce.AsyncResponder;
import com.salesforce.objects.LoginRequest;
private function init():void{

var lr:LoginRequest = new LoginRequest();
lr.username = "flextest@sandbox.com";
lr.password = "flextest123";
lr.callback = new AsyncResponder(loadGrid);
sandbox.login(lr);

}

private function loadGrid(lr:LoginResult):void {

sandbox.query("SELECT Id, FirstName, LastName FROM Contact",
new AsyncResponder(querySuccess));
}

private function querySuccess(qr:QueryResult): void{
contactgrid.dataProvider = qr.records;
}
]]>
</mx:Script>


</mx:WindowedApplication>

 

 This is what I see in the logs:

 

[SWF] Demo.swf - 1,549,686 bytes after decompression
offline but we will succeed at logging in anyways
query - offline
SQLError: 'Error #3115: SQL Error.', details:'no such table: 'Contact'', operation:'execute', detailID:'2013'
SELECT Id, FirstName, LastName FROM `Contact`;
SQLError: 'Error #3115: SQL Error.', details:'no such table: 'Contact'', operation:'execute', detailID:'2013'
SELECT Id, FirstName, LastName FROM `Contact`;

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
crm123crm123
solved it - the endpoint was different since the environment was on a sandbox.