This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |