Skip to content

Instantly share code, notes, and snippets.

View supercargo's full-sized avatar

Adam Lewis supercargo

View GitHub Profile
@supercargo
supercargo / EmailTaskDefaultType.trigger
Last active October 14, 2021 23:26
Set Task.Type on Enhanced Email Activities
trigger EmailTaskDefaultType on EmailMessage (after insert, after update) {
static final String EMAIL_TASK_TYPE_DEFAULT = 'Email';
List<Task> toUpdate = new List<Task>();
for (EmailMessage newEmailMessage : Trigger.new) {
if (newEmailMessage.ActivityId != null) {
EmailMessage oldEmailMessage = null;
if (Trigger.isUpdate) {
@supercargo
supercargo / datomic-analytics-preview-notes.md
Last active September 10, 2021 18:36
Notes on Datomic Analytics Preview

Datomic Analytics in Preview

Initial notes and findings

Cognitect has bundled presto-server direclty in the datomic distribution. Taking the datomic plugin and dropping it into stock presto (v0.226) resulted in an error on startup, not sure if the bundled version of presto has been modified somehow?

2019-10-04T15:52:26.045-0400	INFO	main	com.facebook.presto.server.PluginManager	-- Loading plugin /Users/adam/dev/presto-data/plugin/datomic --
2019-10-04T15:52:26.085-0400	WARN	main	com.facebook.presto.server.PluginManager	No service providers of type com.facebook.presto.spi.Plugin