Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!

question

newuser-0b52873b-a347-49de-b7d3-c627724c1698 avatar image

DynamoDB Key syntax

So, I've been trying and struggling to get DynamoDB to recognise the key I am creating, using two merged slots.

My Lambda is below, and I believe it is the constructed DDID variable that is not correct. If I force a static key, it finds the data without an issue (e.g. SNP1, Labour2, Conservatives3, etc, etc).

Can anyone see what I am doing wrong? the DDID should match the above combing the party and Ward information provided by the user in defined slots under the intent.

var DDID;

const params = { TableName: 'SurgeryData', Key:{ "id": DDID} }; ==============================================================================

'CouncillorIntent': function () { var filledSlots = delegateSlotCollection.call(this);

speechOutput = '';

var wardSlotRaw = this.event.request.intent.slots.ward.value; console.log(wardSlotRaw);

var wardSlot = resolveCanonical(this.event.request.intent.slots.ward); console.log(wardSlot);

var partySlotRaw = this.event.request.intent.slots.party.value; console.log(partySlotRaw);

var partySlot = resolveCanonical(this.event.request.intent.slots.party);

var DDID = partySlot+wardSlot;

console.log(DDID);

Can anyone see what I am doing wrong with the construction of DDID?

lambdadynamodb
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello and thank you for your message.

I see that you are having issues with DynamoDB. While it can be used for developing skills for Alexa, we do not provide support for this specific tool in this forum. You should try posting it on AWS forums.

Sorry I was not able to help you further.

Regards,
Barry

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.