How to use variables to get from Dynamodb for alexa skill?

I am writing am alexa skill and I cannot seem to be able to use Dynamodb properly. 

'ShowMeInfo': function(){
        var businessName = this.event.response.intent.slots.business.value;
        var itemName = this.event.response.intent.slots.item.value;
        var tableName = "ShowMeDB";



        var params = {
          TableName: tableName,
          Key: {
            'BusinessName': {S: businessName}
          },
          ProjectionExpression: 'ItemName'
        };

        docClient.getItem(params, function(err, data) {
          if (err) {
            console.log("Error", err);
          } else {
            console.log("Success", data.Item);
          }
        });

I don’t know what I’m doing obviously. Any help would be amazing.

Hi @timaholic,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.

I wanted to jump in here, and mention that if you don’t get the help you’re looking for from this particular community, you might want to try getting help somewhere that focuses on DynamoDB. It’s definitely possible another GitHub user might have run into this same issue and can help, but the GitHub Community Forum focuses primarily on topics related to GitHub itself or collaboration on project development and ideas. We want to make sure you’re getting the best support you can, but this forum may not be the right place for this particular topic.

Best of luck!