I'm trying to find an example of using the value of a query parameter to lookup a response row in a csv.
Chatgpt says, it's not possible. It suggested I enable javascript and use the decorate behaviour to copy the query param into the body. However, I don't want to use injection.
Seems odd that this behaviour isn't available
"_behaviors": {
"lookup": [{
"key": {
"from": "query",
"using": {
"method": "regex",
"selector": "id=(.*)"
}
},
"fromDataSource": {
"csv": {
"path": "lookup/responses.csv",
"keyColumn": "ID"
}
},
"into": "row"
}]
}