Email after insert

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

Email after insert

Post by pasbonte » 2018-06-04 07:57

Hello
I have seen and tried how to send an email after an insert, but I would like to have in this email the fields filled and not just a link to the form.
Is it possible ?
thank you

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: Email after insert

Post by R Tammam » 2018-06-05 15:42

Hello pasbonte,

function tablename_after_insert($data, $memberInfo, &$args){

return TRUE;
}
in the after_insert hook function there is a $data parameter
where $data is an associative array where the keys are field names and the values are the field data values that were inserted into the new record. It also includes the item $data['selectedID'] which stores the value of the primary key for the new record.

and here's an AppGini refrence to after_insert hook function
http://bigprof.com/appgini/help/advance ... ter_insert
i hope it would help you

Post Reply