Overdue Invoice Chaser
Module 21 · business · intermediate
status.js
// Read-only view of the reminder history for one invoice.
const id = String($('Status API').first().json.query?.invoice_id ?? '');
const led = ($getWorkflowStaticData('global').ar ?? {})[id];
return [{ json: led ? { found: true, invoice_id: id, ...led } : { found: false, invoice_id: id } }];