| Package | com.salesforce |
| Class | public class AIRConnection |
| Inheritance | AIRConnection Connection flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
![]() | applicationDomain : String
Host and Domain name parsed from the server url, or localhost
| Connection | |
![]() | applicationServerName : String
Server name parsed from the web services endpoint
| Connection | |
![]() | applicationUrl : String
URL web services endpoint, set in the login process
| Connection | |
| autoSync : Boolean | AIRConnection | ||
![]() | batchSize : Number
Change the default size of the batches returned from Query() and QueryMore(), the minimum size is 200, the maximum size is 2000
the system will also reserve the right to return other sizes, this is a suggestion.
| Connection | |
![]() | loginResult : LoginResult | Connection | |
![]() | protocol : String
protocol to use, can be set to http, defaults to https
| Connection | |
![]() | serverUrl : String
Set in the login process by connection.loginWithCredentials() or loginWithSessionId(()
| Connection | |
| Method | Defined by | ||
|---|---|---|---|
|
AIRConnection(autoSync:Boolean = true)
| AIRConnection | ||
![]() |
checkStatus(requestIds:Array, callback:IResponder):void
| Connection | |
![]() |
convertLead(leadConverts:Array, callback:IResponder):void
to be tested
| Connection | |
![]() |
create(sobjects:Array, callback:IResponder):void
Create new records in the salesforce database, pass in an array of SObjects, and a responder callback pair of functions
| Connection | |
![]() |
createObject(customObjects:Array, callback:IResponder):void
| Connection | |
![]() |
deleteIds(ids:Array, callback:IResponder):void
Delete a list of objects from salesforce.com database, the array contains just the id strings
| Connection | |
![]() |
deleteObject(customObjects:Array, callback:IResponder):void
| Connection | |
![]() |
describeGlobal(callback:IResponder):void
returns a list of all valid objects (table names) in the salesforce database, used to check that a desired table
exists in a given database
| Connection | |
![]() |
describeLayout(type:String, recordTypes:Array, callback:IResponder):void
callback receives a complex data class
desribing the meta-data used to layout a page for view or edit, you may specify an
array of record type IDs to limit the amount of data returned if your object has many fields or record types.
| Connection | |
![]() |
describeSObject(type:String, callback:IResponder):void
use describeSObjects instead
| Connection | |
![]() |
describeSObjects(types:Array, callback:IResponder):void
return the object description in detail for one or more salesforce custom or standard objects
| Connection | |
![]() |
describeTabs(callback:IResponder):void
callback receives a structure describing all installed AppExchange applications
for the current connection, including a list of object tabs for each application.
| Connection | |
![]() |
execute(packageName:String, method:String, args:Array, callback:IResponder, isArray:Boolean = false):void
Used to execute Apex Code packages (Apex Code is currently in developer preview)
| Connection | |
![]() |
getCurrentSessionid():String
Use this method to determine if a connection has or has not been initialized by loginWithCredentials() or loginWithSessionId() via an scontrol
| Connection | |
![]() |
getDeleted(sObjectType:String, startDate:Date, endDate:Date, callback:IResponder):void
given a time range, returns a list of records ( of any type) that were deleted in that time
window, resulting IDs can be passed into undelete, or used to purge remote systems of records
that are deleted in the salesforce system
| Connection | |
![]() |
getServerTimestamp(callback:IResponder):void
Retrieves the current system timestamp
(Greenwich Mean Time (GMT) or Coordinated Universal Time (UTC) time zone) from the API.
| Connection | |
![]() |
getUpdated(sObjectType:String, startDate:Date, endDate:Date, callback:IResponder):void
list the objects that have been updated by the system in the time windows passed in
| Connection | |
![]() |
getUserInfo(callback:IResponder):void
Retrieves personal information for the user associated with the current session.
| Connection | |
![]() |
isSControl():Boolean
used to detect if we are running from inside a SControl on the hosted Apex platform
| Connection | |
![]() |
login(loginRequest:LoginRequest):void
unified login request, will perform one of loginWithSessionId, or loginWithCredentials depending on
the information provided in the request structure
| Connection | |
![]() |
merge(mergeRequest:MergeRequest, callback:IResponder):void
to be tested
| Connection | |
![]() |
process(actions:Array, callback:IResponder):void
to be tested
| Connection | |
![]() |
query(queryString:String, callback:IResponder):void
Query table or table and related tables using Salesforce SOQL language strings, the responder
will return the results asynchronously to the callback functions (response,fault)
| Connection | |
![]() |
queryAll(queryString:String, callback:IResponder):void
this version of query will include in it's scope the recycle bin as well as the live data
| Connection | |
![]() |
queryMore(queryLocator:Object, callback:IResponder):void
looping portion of the query() queryMore() method for accessing large data sets
| Connection | |
|
refreshCache():void
| AIRConnection | ||
![]() |
resetPassword(userId:String, callback:IResponder):void
Changes a user’s password to a temporary, system-generated value.
| Connection | |
![]() |
retrieve(fieldList:String, sObjectType:String, ids:Array, callback:IResponder):void
Retrieve a list of sobjects given an array of object ids
| Connection | |
![]() |
search(searchString:String, callback:IResponder):void
search for objects in one or more tables within the salesforce database
| Connection | |
![]() |
sendEmail(messgeList:Array, callback:IResponder):void
send an email or mass email from the system
| Connection | |
![]() |
setPassword(userId:String, password:String, callback:IResponder):void
Sets the specified user’s password to the specified value.
| Connection | |
|
syncPendingQueries():void
| AIRConnection | ||
![]() |
undelete(ids:Array, callback:IResponder):void
to be tested
| Connection | |
![]() |
update(sobjects:Array, callback:IResponder):void
Update existing records in the salesforce database, the array of sobjects must have a valid ID filled in for
each record to be updated
| Connection | |
![]() |
updateObject(customObjects:Array, callback:IResponder):void
| Connection | |
![]() |
upsert(externalIDFieldName:String, sobjects:Array, callback:IResponder):void
utility function that will perform a create or update depending on the presence of an existing record
that matches the provided external key field
| Connection | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | Event used to print out the SOAP messages used in the API transport methods | Connection | ||
| AIRConnection | ||||
| AIRConnection | ||||
| AIRConnection | ||||
![]() | Event used internaly to collect responses and pass them back to the responder callbacks | Connection | ||
| AIRConnection | ||||
| AIRConnection | ||||
| AIRConnection | ||||
| autoSync | property |
public var autoSync:Boolean
| AIRConnection | () | constructor |
public function AIRConnection(autoSync:Boolean = true)Parameters
autoSync:Boolean (default = true) |
| refreshCache | () | method |
public function refreshCache():void
| syncPendingQueries | () | method |
public function syncPendingQueries():void
| refreshCacheEnd | event |
| refreshCacheError | event |
| refreshCacheStart | event |
| syncPendingCreatesEnd | event |
| syncPendingCreatesError | event |
| syncPendingCreatesStart | event |