You need to sign in to do that
Don't have an account?
Amans
Transaction control in Apex code
Hey guys
I m going through transaction control and savepoint feature of apex code and using global class and webservice keyword
webService Static Account[] roll_demo(String arg)
{
String[] ss = new String[]{arg};
Account[] acc = [select id,billingcity,name from account where name='Aman'];
insert acc;
System.assertEquals(null,[select accountnumber from account where id = :acc.Id].accountnumber);
Savepoint sp = Database.setSavepoint();
return acc ;
}
so i get error , i m not sure of the cause but i had tried by using public class also , but it didn't work
any one can suggest where im commiting a mistake
thx
Aman Sehgal
I m going through transaction control and savepoint feature of apex code and using global class and webservice keyword
webService Static Account[] roll_demo(String arg)
{
String[] ss = new String[]{arg};
Account[] acc = [select id,billingcity,name from account where name='Aman'];
insert acc;
System.assertEquals(null,[select accountnumber from account where id = :acc.Id].accountnumber);
Savepoint sp = Database.setSavepoint();
return acc ;
}
so i get error , i m not sure of the cause but i had tried by using public class also , but it didn't work
any one can suggest where im commiting a mistake
thx
Aman Sehgal
What is the exact error you are getting?