Hi guys i want to schedule the job to create reminders for customers with outstanding balances and issue the reminders daily. I also need to set the document date to the current date.
procedure CreateCustomerReminders()
var
CustomerRec: Record Customer;
begin
CustomerRec.RESET;
if CustomerRec.FINDSET then
repeat
if CustomerRec./Outstanding Balance/ > 0 then
begin
// Create a reminder document for the customer
// Set the document date to the current date
// Send the reminder to the customer (e.g., via email)
end;
until CustomerRec.NEXT = 0;
end;