Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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

init for blog

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