Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
We are currently developing a custom SaaS connector. As part of the design, we need to create a UI that allows users to define mapping criteria through a key-value list. To achieve this, we created a connector spec file using the key-value type as described in the SaaS connectivity documentation.
Our assumption was that the key-value data is stored as an array. However, when we attempt to iterate over it in our code, we encounter a “not an iterable” error once we deploy the connector
We are seeking clarity on the following:
-
How is the key-value type actually stored/passed to the back end from the UI (e.g., as an array or in another format)?
-
When testing, how should we correctly specify the config object to represent the expected key-value list?
Here is code snippet of the connector-spec file -
"items": [
{
"type": "section",
"sectionTitle": "Schema Mapping",
"sectionHelpMessage": "Provide the response attributes to schema attributes mapping",
"items": [
{
"key": "mappingSchema",
"label": "Mapping criteria",
"type": "keyValue",
"keyValueKey": {
"key": "key",
"label": "Response attributes",
"type": "text",
"required": true,
"maxlength": "4096"
},
"keyValueValue": {
"key": "value",
"label": "Schema attribute",
"type": "text",
"required": true,
"maxlength": "4096"
}
}
]
}
]