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
youji37youji37 

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;

Message Edited by youji37 on 05-13-2009 07:24 AM
yuyinchayuyincha

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..