You need to sign in to do that
Don't have an account?
youji37
how to get the record from ProcessInstances table?
I use the following statement, want to get he record from ProcessInstances table, but it return.Don't know how to get the record from this table. And I want to know if this sql statement returns any record, can someone tell me how to do that?
ap=[Select CreatedById, CreatedDate, Id, IsDeleted, LastModifiedById, LastModifiedDate, Status From ProcessInstances where TargetObjectId =: a.id].Status;
this may be right.
ap=[Select CreatedById, CreatedDate, Id, IsDeleted, LastModifiedById, LastModifiedDate, Status From ProcessInstances where TargetObjectId =: a.id][0].Status;
study this page http://wiki.developerforce.com/index.php/An_Introduction_to_Apex.
you will get same help..