on success events w/ sendmail don't update imported records
This one takes a bit of explaining so please forgive the length of this post...
Attempting to update records in an on success {} event will fail if the success is triggered by an import (as opposed to being triggered by manually filling out the form) and the code in that success event contains a call to sendmail().
I created two simple public applications to illustrate this:
Import Record Update Test (doesn't work correctly) and Copy of Import Record Update Test (works correctly)
Both apps are almost identical, the only difference is that the first contains a call to sendmail() and the second does not.
For both apps, try manually filling out the Single Line and leave the Decision Check alone, letting the on success {} flip it to true through an Update operation. You can check that the update worked by looking at the data in the view.
This will work great in both applications. But if you try importing some data into both, only the Copy of... version will perform the on success {} record update, e.g., import this data:
Enter Some Text,For Update on Success,
record one,,
record two,,
record three,,
record four,,
Import Record Update Test emails me (the admin) via sendmail() but won't perform the update. Copy of Import Record Update Test does not perform any sendmail operation and works great.
...Ouch!