list problem

  

i am using list append to append the result of getUsers query. i have made a local variable of list type. i am appending the list in preparation. So whenever i am performing operation on the list it becomes null. Why it is happening so?

Lovish Goyal wrote:

i am using list append to append the result of getUsers query. i have made a local variable of list type. i am appending the list in preparation. So whenever i am performing operation on the list it becomes null. Why it is happening so?


You have to Create a Record variable which contains all the attributes that your list has.
then assign values to record variable and pass it to the list append action. then your list will append.