Update Related Tables when deleting data

when i delete payments, it also deletes โ€œpayment detailsโ€ as they are considered a part of the โ€œpaymentโ€ record. how do i update the invoice status and balance without using virtual columns.

to create payment/details and update invoice i use a series of action to update the invoice when the payment is created. but when i delete the payment i cant seem to figure out how to update that invoice as the action needs a reference to update a record.

any advice/help would be appreciated.

0 3 177
3 REPLIES 3

@clint_thomas Have you tried to use Workflow/Data change for this purpose?

@Aleksi

that was my initial approach unfortunately it didnโ€™t work. but i did figure out a work aroundโ€ฆ

i create another action to change the data on the field to be deleted to 0, and then i have an action to update the invoice, then it deleted the payment detail and the payment data from their respective tablesโ€ฆ

without changing the data to 0 it would never update the invoice because it had nothing to reference

Glad you were able to solve the challenge!

Top Labels in this Space