Packagecom.salesforce.objects
Classpublic dynamic class SObject
InheritanceSObject Inheritance mx.utils.ObjectProxy



Public Methods
 MethodDefined by
  
SObject(obj:Object)
Generic constructor for a normal SObject, used by an application to create an empty object or passed to the application with data filled in from an API request.
SObject
  
decodeBase64(field:String):ByteArray
Method used to decode Body properties returned by the API, normaly transmited as BinaryBase64, these can be converted back into their original string or image data
SObject
  
loadSObject(obj:ObjectProxy):void
Loads the SObject object given the SOAP response for connection.query() or connection.retrieve()
SObject
  
toDebugString():String
return a string representation of this SObject, does pretty printing with new lines
SObject
  
toXml(sobjectNs:String, name:String, writer:XmlWriter):void
An sobject will consist of key/value pairs and possible related children, this will render the given SObject as XML, used to prepare the object for SOAP transport We don't have to worry about including typing info in the soap message.
SObject
Constructor detail
SObject()constructor
public function SObject(obj:Object)

Generic constructor for a normal SObject, used by an application to create an empty object or passed to the application with data filled in from an API request. When the obj is an ObjectProxy, this object is being created from server data (query or retrieve). When the obj is a String, the object is being created from code (new SObject("Account")).

Parameters
obj:Object
Method detail
decodeBase64()method
public function decodeBase64(field:String):ByteArray

Method used to decode Body properties returned by the API, normaly transmited as BinaryBase64, these can be converted back into their original string or image data

Parameters
field:String — byte array of the decodeed field contents

Returns
ByteArray — ByteArray
loadSObject()method 
public function loadSObject(obj:ObjectProxy):void

Loads the SObject object given the SOAP response for connection.query() or connection.retrieve()

Parameters
obj:ObjectProxy
toDebugString()method 
public function toDebugString():String

return a string representation of this SObject, does pretty printing with new lines

Returns
String — String
toXml()method 
public function toXml(sobjectNs:String, name:String, writer:XmlWriter):void

An sobject will consist of key/value pairs and possible related children, this will render the given SObject as XML, used to prepare the object for SOAP transport We don't have to worry about including typing info in the soap message. We do have to worry about date formats.

Parameters
sobjectNs:String
 
name:String
 
writer:XmlWriter