How can I create a trigger to allow or prevent a before-insert script, called only from Outlook?

You can allow or prevent a before-insert script through Groovy scripts using the AutoLogSource field. Here's an example script that shows how to modify the AfterCreate trigger:

if(AutoLogSource != 'OUTLOOK')
{
// Place your groovy code here. This won't be triggered through Outlook.
}