Update a notion database item - how to?

I can’t figure out a simple thing, IMHO.
I can find a notion database item, even using a filter, that’s OK.

But then I would like to just update some text in some filed and I get errors only. I cannot correctly map fields between each other:

My goal is to change text “Article name 1” to “test value”.

This is the output Bundle I get from previous module:

[
    {
        "object": "page",
        "id": "479edeb9-36f7-40a1-bda1-17a193baa492",
        "created_time": "2023-12-12T05:38:00.000Z",
        "last_edited_time": "2023-12-14T15:48:00.000Z",
        "created_by": {
            "object": "user",
            "id": "7efbecbd-cb46-4d65-8b89-9202e3ebd39b"
        },
        "last_edited_by": {
            "object": "user",
            "id": "7efbecbd-cb46-4d65-8b89-9202e3ebd39b"
        },
        "cover": null,
        "icon": null,
        "parent": {
            "type": "database_id",
            "database_id": "6f1fc476-514f-43df-836c-ec3ed9822bca"
        },
        "archived": false,
        "properties": [
            {
                "id": "%3ERSd",
                "type": "checkbox",
                "checkbox": false,
                "label": "Text3ok"
            },
            {
                "id": "%40J_%3F",
                "type": "rich_text",
                "rich_text": [
                    {
                        "type": "text",
                        "text": {
                            "content": "www",
                            "link": null
                        },
                        "annotations": {
                            "bold": false,
                            "italic": false,
                            "strikethrough": false,
                            "underline": false,
                            "code": false,
                            "color": "default"
                        },
                        "plain_text": "www",
                        "href": null
                    }
                ],
                "label": "Kontext"
            },
            {
                "id": "K%7D_A",
                "type": "checkbox",
                "checkbox": true,
                "label": "Generovať"
            },
            {
                "id": "P%5B%3F%5B",
                "type": "date",
                "date": null,
                "label": "Date"
            },
            {
                "id": "Z_t%3B",
                "type": "checkbox",
                "checkbox": false,
                "label": "Text1ok"
            },
            {
                "id": "%60uon",
                "type": "checkbox",
                "checkbox": false,
                "label": "Text2ok"
            },
            {
                "id": "a%7DhD",
                "type": "multi_select",
                "multi_select": [],
                "label": "Sieť"
            },
            {
                "id": "eG%7D%7C",
                "type": "select",
                "select": null,
                "label": "Prompt"
            },
            {
                "id": "ggEJ",
                "type": "url",
                "url": null,
                "label": "URL"
            },
            {
                "id": "kifR",
                "type": "checkbox",
                "checkbox": false,
                "label": "Publikované"
            },
            {
                "id": "k%7DVN",
                "type": "rich_text",
                "rich_text": [],
                "label": "Obsah"
            },
            {
                "id": "rUsI",
                "type": "rich_text",
                "rich_text": [],
                "label": "GPTText2"
            },
            {
                "id": "stuV",
                "type": "multi_select",
                "multi_select": [],
                "label": "Tags"
            },
            {
                "id": "yPE%40",
                "type": "rich_text",
                "rich_text": [],
                "label": "GPTText3"
            },
            {
                "id": "z%5CpO",
                "type": "rich_text",
                "rich_text": [],
                "label": "GPTText1"
            },
            {
                "id": "title",
                "type": "title",
                "title": [
                    {
                        "type": "text",
                        "text": {
                            "content": "Article name 1",
                            "link": null
                        },
                        "annotations": {
                            "bold": false,
                            "italic": false,
                            "strikethrough": false,
                            "underline": false,
                            "code": false,
                            "color": "default"
                        },
                        "plain_text": "Article name 1",
                        "href": null
                    }
                ],
                "label": "Názov"
            }
        ],
        "url": "https://www.notion.so/Article-name-1-479edeb936f740a1bda117a193baa492",
        "public_url": null,
        "properties_value": {
            "Text3ok": false,
            "Kontext": [
                {
                    "type": "text",
                    "text": {
                        "content": "www",
                        "link": null
                    },
                    "annotations": {
                        "bold": false,
                        "italic": false,
                        "strikethrough": false,
                        "underline": false,
                        "code": false,
                        "color": "default"
                    },
                    "plain_text": "www",
                    "href": null
                }
            ],
            "Generovať": true,
            "Date": null,
            "Text1ok": false,
            "Text2ok": false,
            "Sieť": [],
            "Prompt": null,
            "URL": null,
            "Publikované": false,
            "Obsah": [],
            "GPTText2": [],
            "Tags": [],
            "GPTText3": [],
            "GPTText1": [],
            "Názov": [
                {
                    "type": "text",
                    "text": {
                        "content": "Article name 1",
                        "link": null
                    },
                    "annotations": {
                        "bold": false,
                        "italic": false,
                        "strikethrough": false,
                        "underline": false,
                        "code": false,
                        "color": "default"
                    },
                    "plain_text": "Article name 1",
                    "href": null
                }
            ]
        },
        "__IMTLENGTH__": 1,
        "__IMTINDEX__": 1
    }
]

This is how it looks like in the second module:

It looks like you mapped the value of the property Názov instead of the key (in the last screenshot).

To map the correct property key, you could try to type “title”, since it looks like it’s the title property value that you’re trying to change, and the ID of that property (the primary key in Notion) is fixed–always “title”

2 Likes

Nope. This is my error now:


No matter if I use title or Title

Mhh - did you try to also change the “Value type” option to “Title” (selecting from the dropdown menu)?

3 Likes

Great - thank you! Now I got the logic!