Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JACOBNOTES/f7e1c49abe27b476fe6701d11c5127ae to your computer and use it in GitHub Desktop.
Save JACOBNOTES/f7e1c49abe27b476fe6701d11c5127ae to your computer and use it in GitHub Desktop.
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

init for blog

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