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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using PX.Objects; | |
using PX.Data; | |
using PX.Objects.CS; | |
using PX.Objects.AR; |
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>>> |