You need to sign in to do that
Don't have an account?
cpt
how to pass both Object and string in Apex.execute() method as a params
consider the inputs:
var currentSession:String=loginSession;
var b:Object =loginObject;
Now i can pass inside the .apex.execute("","params,"") asyncronously can any one help me ....
If you are talking about execute method of Batch Apex, then you cannot do this way.
You have to implement database.stateful interface on your class which will help in maintaining the states.
In your case you have to declare two global variables in the Batch class and assign the values to these variable when you create instance of the class.