Monday node get:boardItem error

Hi! I am trying to make a quite simple automation to get a Monday item when the status column changes.

For this, I use a webhook that will trigger when the status column changes on Monday and then get the item id of the modified item to get all the item’s information with a get:boardItem node.
However, when a put manually the item id in the node it works, but when I try to get it from the webhook’s output, I get the following error: ERROR: this.getNodeParameter(...).split is not a function

Please share your workflow

On the Webhook output I get this :

And so I’m trying to get the “pulseId”, which corresponds to my item’s id.
But when I drag and drop the field in the “Item ID” of my Monday’s node, I get this error:

TypeError: this.getNodeParameter(...).split is not a function
    at Object.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/MondayCom/MondayCom.node.ts:592:9)
    at Workflow.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1253:31)
    at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1024:44

Do you have any idea on how to make this work?
Thank you!

Hey @Razuri,

Welcome to the community :raised_hands:

Can you try {{ $json.body.event.pulseId.toString() }} and let me know if it works? If that gets you around the issue I might be able to get a proper fix put in for this one fairly quickly.

1 Like

It works perfectly with the toString() method, thank you!
Is it because the result of {{ $json.body.event.pulseId }} is considered as an object and Monday needs a String?

1 Like

Hey @Razuri,

Very close, It is a Number rather than a string and we assume internally that it is a string. We should be able to check the type and convert it first which would resolve this properly in the future.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.