Blog_AcuAudit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<AuditHistory> FindScreenRecordsTriggeredbyDateFrom(PXGraph graph) | |
{ | |
var distinctScreenID = "AR303000"; | |
// change date as needed - here for debugging only | |
DateTime? lastDateTimeFromParameter = Convert.ToDateTime("05/15/2022 17:00:00"); | |
var historyRecords = SelectFrom<AuditHistory> | |
.Where<AuditHistory.changeDate.IsGreater<@P.AsDateTime> | |
.And<AuditHistory.screenID.IsEqual<@P.AsString>>> | |
.OrderBy<AuditHistory.changeDate.Desc> | |
.View.Select(graph, lastDateTimeFromParameter, distinctScreenID).RowCast<AuditHistory>().ToList(); | |
return historyRecords; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
init for blog