Genesys Cloud - Main

 View Only

Sign Up

Data Action -- lambda -Dynamo DB

  Thread closed by the administrator, not accepting new replies.
  • 1.  Data Action -- lambda -Dynamo DB

    Posted 07-08-2021 18:40
    No replies, thread closed.
    Hi All,

    I am trying to read some data from DynamoDB using Data Action (GC Data Action --> Lambda --> DynamoDB).
    While am able to read the data from Lambda function , the Data Action gives me the below error 
    {
    "error.message": "The provided key element does not match the schema",
    "error.retryable": false,
    "error.statusCode": 400,
    "error.code": "ValidationException"
    }

    Am trying to use the below for retrieving the data from Dynamo DB
    const params = {
    TableName: 'Table1',
    Key: {
    ID : responseBody.receivedEvent.ID
    }
    };
    #Integrations

    ------------------------------
    Ayaskant Pattnaik
    Cognizant Technology Solutions U.S. Corporation
    ------------------------------