Skip to content

Instantly share code, notes, and snippets.

@CcDora
CcDora / CreateDynamicsIncidentRecordFromLambda.js
Last active November 30, 2017 16:46
AWS lambda function: Create a Dynamics Case (incident) record based on input data
//AWS lambda function
//Create a Dynamics Case (Incident) record based on input data
//Change the following variables: token, dynamicsLookupHost, accountId, callerPhoneNumber
/*Invoke with:
{
"currentIntent": {
"dialogState": "ReadyForFulfillment",
"intentName": "OpenDynamicsIncident",
@CcDora
CcDora / processTicketDataSet.py
Last active November 29, 2017 15:51
Python AWS Lambda function: processes input data from Amazon Lex and forwards the data to recipient's email address using AWS Simple Email Service (SES).
#Invoke this AWS Lambda function with an input event similar to the sample in testInputData.txt file
import logging
import boto3
from botocore.exceptions import ClientError
import os
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)