From 5c65817aa6d8d0926876d3de918b88ec9c565fcb Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 8 Oct 2024 08:40:48 +0200 Subject: [PATCH] fix(admin/windmill): Some minor additions Signed-off-by: Marcel Klehr --- admin_manual/windmill_workflows/index.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/admin_manual/windmill_workflows/index.rst b/admin_manual/windmill_workflows/index.rst index 57bca48730c..b3e5c562ad1 100644 --- a/admin_manual/windmill_workflows/index.rst +++ b/admin_manual/windmill_workflows/index.rst @@ -9,7 +9,7 @@ Installation * Install Windmill - * Either as a standalone install or via the Windmill External App in Nextcloud (see :ref:`External Apps`) + * Either as a standalone install or via the External App "Flow" in Nextcloud (see :ref:`External Apps`) * Enable the ``webhook_listeners`` app that comes with Nextcloud @@ -41,6 +41,13 @@ The magic listener script The first script (after the "Input" block) in any workflow you build that should listen to a Nextcloud webhook must be ``CORE:LISTEN_TO_EVENT``. It must be an empty script with two parameters that you should fill statically: ``events``, which is a list of event IDs to listen to and ``filters`` a filter condition that allows more fine grained filtering for which events should be used. The filter condition as well as the available events with their payloads is documented in :ref:`the webhook_listeners documentation`. +You can copy the following Deno script for this: + +.. code-block:: typescript + + export async function main(events: string[], filters: object) { } + + Nextcloud Scripts -----------------