Hi,
I’m trying to fill out a multi select field in Notion from a piece of JSON, received from an HTTP GET request. The JSON I’m getting from the GET request, looks like this:
"items": [
{
"resourceURI": "http://gateway.marvel.com/v1/public/characters/1009220",
"name": "Black Cat"
},
{
"resourceURI": "http://gateway.marvel.com/v1/public/characters/1009262",
"name": "Spider-Man (Ben Reilly)"
}]
So I’m using an Iterator and an Array Aggregator to reduce that JSON to just the part I need, which is the name.
The output of that looks like this:
[
{
"array": [
{
"__IMTKEY__": "Black Cat"
},
{
"__IMTKEY__": "Spider-Man (Ben Reilly)"
}
],
"__IMTAGGLENGTH__": 2
}
]
In Notion, I’m mapping this to the Tags field of my DB, but I’m getting a 400 error:
The setup of the two modules.
In Notion, “Tags” is a Multi-Select field.
The operation failed with an error. [400] body failed validation. Fix one: body.properties.Tags.multi_select[0].id should be defined, instead was `undefined`. body.properties.Tags.multi_select[0].name should be a string, instead was `{"__IMTKEY__":"Black Cat"}`.
This is not a connection issue with the DB, I’m modifying a number of other properties in this same DB within this scenario.
The end result I’m looking for would look like this in Notion:
I’ve looked around the forums and found a number of similar questions, but no answers.
Thanks!