Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Blog_AcuAudit
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;
}
@JACOBNOTES
Copy link
Author

JACOBNOTES commented May 16, 2022

init for blog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment