July 22nd 2022 - How can you utilise webhooks in Rewst?

In this call, we're going to have a quick refresh on the platform to understand some of the recent changes both in navigation and on the backend.

We're also going to look at how you can use webhooks as both triggers for workflows, and how to use them in the workflows themselves to send/retrieve data from various platforms.

Finally, we'll finish with a Live Q&A about all the things you want to know!

Contents of the recording

Rewst Platform Refresher

Basic features of the platform - Integrations - Workflows - Forms - Triggers - Templates - Scripts - Organization variables - Results - Crates

How to get help from the ROC

How to get help - Engage the ROC in Slack - Email support coming soon! - [FUTURE] Live chat in the app - Would this be helpful to people? - Documentation - https://rewst.help - Feature Requests - https://rewst.canny.io/

Updates for the week
  • CWA Generic Action

  • EXO bug fix for headers

  • Datto UDF Support

  • Jinja2 Live Editor: new [Tools] button on left navigation

    • More on this in the Learning section

  • Monaco hints & whitespace showing

Coming soon

  • CW Control Integration

  • Results page performance improvements

  • MS Graph Send Mail improvements

  • More regex functionality

Learning Topic
  • HTTP Request

    • https://swapi.dev/api/planets

    • Grab results and paste into Live Editor. Example snippets:

    • {{ [ planet for planet in CTX.data.results ] }}

    • {{ [ planet.name for planet in CTX.data.results ] }}

    • {{ [ {"name":planet.name,"year_length":planet.orbital_period} for planet in CTX.data.results ] }}

    {{ year_data | sort(attribute="year_length") }}

  • Dynamic Webhooks

    • Core -> Create Webhook

      • When this action runs, it creates an HTTP Listener (web site basically) at a random URL

        • URL is one-time use only

        • Once it is hit once, it disappears

      • Output items:

        • url URL of the webhook

        • webhook_id` Used for the Await Webhook Request action

      • GET Webhook - Response Body ( curl the RESULT.result.url )

      • POST Webhook

        • Use Await Webhook Request to receive the input

          • Webhook ID: {{ TASKS.core_create_webhook.result.result.webhook_id }}

          • curl -X POST -H 'Content-Type: application/json' -d '{"foo": [4,8,15,16,23,42]}' $URL

          • We use this in scripts to get output from endpoints when we run commands via RMM

Last updated