I don't know about your second problem. It kind of sounds like something is not configured correctly and the list of defined users may not match the actual number of users the array has been configured to hold.
As for the first problem, your needs will dictate the manner in which the IF statement should be built.
For example, if you only want it to trigger on new records, your IF statement will need to contain the following somewhere in its evaluation:
Code:
empty($bean->fetched_row['id'])
If the above is true, it is a new record. Again, your specific needs will dictate the IF statement. There is no universal answer that will work for everyone. You might have valid reasons for not wanting to assign the record upon entry.
Bookmarks