Open
Description
Bug report
In our Zapier connector, when I use the Get Key-Value store record action, it successfully reads the value because the number of KVS reads visible in Console increases by 1, but it doesn't return the value to Zapier.
The problem is that the Zapier integration can work only with JSON values and the record the user is using is encoded in JSON, but does not have JSON structure. The value is true
.
Proposed solution
What
- Allow user to use JSON content type, but JSON content is
true
- Allow users to work with content types other than just JSON, like text, arrays, files, etc.
- Update output of the action but keep current behaviour for JSON content type (do not break)
How
- Update the get value query https://github.com/apify/apify-zapier-integration/blob/master/src/searches/get_value.js
- The query should work with varies content types and based on content type handle value in kvs
- The output of action of non-JSON records should be
{
"contentType": "<record content type>",
"value": "<record value>"
}
- if the value will be file let's use build in file dehydration see https://docs.zapier.com/platform/build-cli/overview#file-dehydration
- Update action description and help text to cover allowing other than JSON values
- Add tests to cover new functionality
Bug reported here