Connector Improvement: Lambda Custom Options
Hi!
It would be very nice if we could pass optional "configurations" that change the execution behavior/shape of data
As a workaround I'm customizing behavior with "secrets"
opts could maybe be a json object or just key-value pairs like secrets
---
Usecase: I want to reuse a CRM lambda function that I created but depending on some configuration it returns a different table shape like:
opts: {
"pivotColumn": false // default
}
when pivotcolumn = false ->
"inserts": {
"table1": [
{ "key": "", "pivottedColumn": 123 }
]
}
when true:
"inserts": {
"table1": [
{ "key": "", "other_columns": [] }
]
}
-
Official comment
Hi Lucas,
Thank you for letting us know about this need. To help me with prioritization can you share more about the things that you would want to do or that would be enabled by surfacing a different type of configuration option - vs what you get from using the secrets object?
Best regardsAlison
-
Hey Alison!
Sure.
I'd like to configure anything in my lambda without treating it as a secret.
Some real usecases:
* Configuring the initial date that I'd want to pull data from
* Configuring how many days before the last update I'd like to pull data fromAnd other stuff that aren't secrets, but configurations
We can manage it with secrets today, but in my understanding there are some things that are bad UX:
1. I'm not trying to configure secrets, so I should clearly see the value on the input
2. "secrets" json object always sends strings. Maybe I'd want to send other stuff like numbers or booleans (maybe a json object) -
Thank you Lucas,
I love the real world examples it will really help figuring out where we can slot this in on our roadmap.
Best regards
Alison
Please sign in to leave a comment.
Comments
3 comments