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
hector.asp2hector.asp2 

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)
                );
            }


SuperfellSuperfell
query supports select only, you cannot make data changes via soql. you need to use the create/update/delete api calls.