GetByKey Method (JobHistory)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified job history record from the Job_History table.
public static DataSet GetByKey(
int entityId,
string woId,
string operId,
int seqNo,
DateTime jobStartUtc
)
Parameters
- entityId
- Required. Specifies the ID of the entity.
- woId
- Required. Holds the work order ID of the job.
- operId
- Required. Holds the operation ID of the job.
- seqNo
- Required. Holds the sequence number of the job.
- jobStartUtc
- Required. Holds the start date/time of the job, in UTC.
Return Value
Returns a DataSet that contains the DataRow of the specified job history record in the Job_History table. If no matching record is found, an empty DataSet is returned.