Hi All,
I have a custom record which has an invoice as a parent. I've got a user event script deployed after submit on the customer payment. The idea is that when payment is accepted on an invoice, this custom record is created by the script and the related invoice is set as the parent.
The script is able to reference the invoice by invoice number and also by internal ID but when I use either value as the parent invoice I get the INVALID_KEY_OR_REF error when it tries to create the custom record. I'm assuming this is because accepting payment closes the invoice and it's no longer available to be assigned by the script!
Anyone any ideas how I could get around this?
Thanks in advance.
Sion