Skip to content

Instantly share code, notes, and snippets.

// (1) function to get KV variables
const _ENV = () => [replace-with-namespace-name].get('_ENV');
let ENV={};
// (2) listen for a request
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
// (3) function to log to LOGDNA
@mattcam
mattcam / app.js
Created August 17, 2018 05:32
inf-chat-bot
'use strict'
var _ = require('underscore');
var fs = require('fs');
var yaml = require('js-yaml');
var builder = require('botbuilder');
var restify = require('restify');
const {Wit} = require('node-wit');
var Log = require('log'), log = new Log('info');
@mattcam
mattcam / README.md
Last active August 24, 2017 21:32
sfmc-solution-document-wip

Salesforce Marketing Cloud Solution Document

The purpose of this document is to provide a high-level framework for getting started with documenting how to provide a single customer view and associated data integration in Salesforce Marketing Cloud.

Work on this document was largely inspired by a community support collaboration where Salesforce Marketing Cloud Developer Group assisted Autism CRC to setup their Salesforce Marketing Cloud. Supporting documentation for the Autism CRC project is available on request.

Backlog of work in progress

This document is a work in progress. Additional sections for campaigns, journeys and logging will be added as time permits.