IDataAuditApiSearch Method |
Namespace: Casewhere.Runtime.DSL.Api
DataAuditQueryResult Search( DataAuditApiQuery query )
var dataAuditApi = ctx.Use<IDataAuditApi>(); var relatedDOId = "RelatedDataClass/f97b09f9-896b-44d5-8885-aa50001be638"; var filter = FilterBuilder.Create().Eq("DataObjectId", relatedDOId).Build(); var result = dataAuditApi.Search(DataAuditApiQuery.FilterBy(filter)); Log.Info("Total: {Total}", result.Total); foreach(var auditLog in result.Data) Log.Info("{AuditLog}", auditLog);