Article Details
Id:10329
Product:finPOWER Connect
Type:NEW
Version:1.06.00
Opened:18/07/2012
Closed:18/07/2012
Released:01/08/2012
Job: J010034

Account "SavePost" event script; cannot "save" Account in script

When using a "SavePost" event script for an Account, you cannot "Save" the Account within the script. It fails with a warning "An attempt has been made to recursively save record.". Note, this does not produce an error - only a warning.

This occurs because finPOWER Connect detects recursive calls to save from a script.

Note, this issue exists for Accounts, Account Types, Branches, Clients and External Parties.

A change has been made so that the "SavePost" event can call "Save" again.

Note, the "SavePost" event occurs after the record has been saved, so you cannot cancel changes. Use the "SavePre" event to cancel a save.