@@ -269,10 +269,13 @@ function Get-DbaAgentJobHistory {
269
269
}
270
270
Add-Member - Force - InputObject $execution - MemberType NoteProperty - Name OutputFileName - value $outname
271
271
Add-Member - Force - InputObject $execution - MemberType NoteProperty - Name RemoteOutputFileName - value $outremote
272
- Select-DefaultView - InputObject $execution - Property ComputerName, InstanceName, SqlInstance, ' JobName as Job' , StepName, RunDate, StartDate, EndDate, Duration, Status, OperatorEmailed, Message, OutputFileName, RemoteOutputFileName
272
+ # Add this in for easier ConvertTo-DbaTimeline Support
273
+ Add-Member - Force - InputObject $execution - MemberType NoteProperty - Name TypeName - value AgentJobHistory
274
+ Select-DefaultView - InputObject $execution - Property ComputerName, InstanceName, SqlInstance, ' JobName as Job' , StepName, RunDate, StartDate, EndDate, Duration, Status, OperatorEmailed, Message, OutputFileName, RemoteOutputFileName - TypeName AgentJobHistory
273
275
}
274
276
else {
275
- Select-DefaultView - InputObject $execution - Property ComputerName, InstanceName, SqlInstance, ' JobName as Job' , StepName, RunDate, StartDate, EndDate, Duration, Status, OperatorEmailed, Message
277
+ Add-Member - Force - InputObject $execution - MemberType NoteProperty - Name TypeName - value AgentJobHistory
278
+ Select-DefaultView - InputObject $execution - Property ComputerName, InstanceName, SqlInstance, ' JobName as Job' , StepName, RunDate, StartDate, EndDate, Duration, Status, OperatorEmailed, Message - TypeName AgentJobHistory
276
279
}
277
280
278
281
}
0 commit comments