How to pass params to DynamoDB PutIte

For the PutItem query, how do I pass parameters?

I’ve tried {{ ObjectId(’{{Input1.text}} }} to replace the hardcoded data but it does not work.

Here is the doc:
{
“TableName” : “four”,
“Item” : {
“pkey” : {
“S” : “a”
},
“name”: {
“S” : “Irene”
},
“friends”: {
“SS” : [“Sherlock”]
}
}
}

How do I pass the value in Input1 instead of “Irene”?

@braveheart Can you try it just as {{Input1.text}}

{
    "TableName" : "four",
    "Item" : {
        "pkey" : {
            "S" : "a"
        },
        "name": {
            "S" : "{{Input1.text}}"
        },
        "friends": {
            "SS" : ["Sherlock"]
        }
    }
}

Thank you. That works for everything except the compound key.

How would I pass something like this:

“pkey” : {
“S” : “{{Item1.text + ‘#’ + Item2.text}}”
},

My DynamoDB table uses a compound key based on two fields and I haven’t been successful passing this. I have tried a number of escape and concat operations.

@braveheart Can you explain what you mean by

My DynamoDB table uses a compound key based on two fields

In your table is Item1 - a partition key and Item2 - a sort key?

can you try using backtick and double quotes too?

“S” : “{{Input1.text + `#` + Input2.text}}” and

“S” : “{{Input1.text + “#” + Input2.text}}”