Skip to content

Instantly share code, notes, and snippets.

View JACOBNOTES's full-sized avatar

Joe Jacob JACOBNOTES

  • Crestwood Associates, LLC
View GitHub Profile
@JACOBNOTES
JACOBNOTES / CustomerMaintExt.cs
Last active December 28, 2022 14:57
Blog_GI_Reader
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;
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>>>