You need to sign in to do that
Don't have an account?

insert and update Account information
hi folks
i am looking to update and insert account information in flex using
Sforce Object Query Language (SOQL) but i am not able to find any valid solution online can you Please help me ?
i am using following code to select account information from SF
private function loadData(lr:Object):void
{
//Select Name, Phone, Type From Account
apex.query("insert (Name, Phone) Type From Account", new AsyncResponder(
function(qr:QueryResult):void {
if (qr.size > 0) {
accountList = qr.records;
}
},
handleFault)
);
}
i am looking to update and insert account information in flex using
Sforce Object Query Language (SOQL) but i am not able to find any valid solution online can you Please help me ?
i am using following code to select account information from SF
private function loadData(lr:Object):void
{
//Select Name, Phone, Type From Account
apex.query("insert (Name, Phone) Type From Account", new AsyncResponder(
function(qr:QueryResult):void {
if (qr.size > 0) {
accountList = qr.records;
}
},
handleFault)
);
}
query supports select only, you cannot make data changes via soql. you need to use the create/update/delete api calls.