Skip to content

Instantly share code, notes, and snippets.

@CcDora
CcDora / CreateDynamicsIncidentRecordFromLambda.js
Last active Nov 30, 2017
AWS lambda function: Create a Dynamics Case (incident) record based on input data
View CreateDynamicsIncidentRecordFromLambda.js
//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 Nov 29, 2017
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).
View processTicketDataSet.py
#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)