Custom trigger without a subscribe URL

Hi, I want to have a custom trigger of “column change” but the user will be able to select ONLY file type column.
How can i achieve this?

When creating a custom trigger I need to select a subscribe URL, which I don’t need in this case because I am not using any external system.

So - How can i create a custom trigger “When a File column changes”?

Thanks in advance!

Hello there @tavorp,

You could use a built-in trigger with a custom action and in the action you could add a custom field of type “list” (source: recipe sentence) that has “boardId” as a dependency. Then when the user clicks on that custom field, your endpoint would be called and the board ID would be sent to you, then you can use that board ID to query via API all the “files” columns in the board, and then display them as a list for the user to choose from. The downside about this is that this would trigger each time anything changes if you use the “whenever any column changes”, and then you would need to check on your end if the change that happened is coming from the same column the user selected or not.

The other way to do this would be to do something similar from a custom trigger instead of a custom action, adding the custom field here, and then adding a webhook whenever any column changes, to use that as your trigger event to then call your custom trigger’s webhook URL.

You could also create a webhook that gets triggered when the selected files column changes:

mutation {
  create_webhook (board_id: 1234567890, url: "https://myserver.com/webhook", event: change_status_column_value, config: "{\"columnId\":\"files__1\", \"columnValue\":{\"$any$\":true}}") {
    id
    board_id
  }
}

I hope that helps!

Cheers,
Matias