Skip to main content

Hey folks


I am trying to build an integration.

I have the Monday → to my app working well.


Now I want to do my app → to Monday.

So I created a new recipe with a custom trigger.


And as an action I have change column value and connected to the trigger provides the value.



I am then calling the trigger in my app with the following code


let mondayWebhookCall = {
method: 'POST',
url: 'https://api-gw.monday.com/automations/apps-events/28711827',
headers:{
'Authorization': `${process.env.SIGNING_SECRET}`,
'Content-Type': 'application/json'
},
data:{
trigger: {
outputFields: {
status : status,
itemId : 882599396
}
}
}
}
let call = await axios(mondayWebhookCall)

I receive a nice { success: true } message, but I see no change in the board 😦


Any idea what I am doing wrong?

Thanks

Hey there! I notice you’re passing status as the column value. Try sending the column data in the same structure as defined in our API documentation: https://monday.com/developers/v2


It should be something like this:


status: {"label": "Done"}


If that doesn’t work, you can also try sending the column value as a JSON string:

status: JSON.stringify({"label": "Done"})


Hope that helps.



That was it!

My understanding is that it will be Monday that would do the translation for me.

Especially if I want to map to different column types.


Not at the moment. Right now we don’t coerce arbitrary values into column types – but it would be awesome if we did. I’ll pass it to the team as feedback.


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