Is it possible to create an ‘event’ or the ‘when’ portion of a workflow statement using a custo...


Badge

Is it possible to create an ‘event’ or the ‘when’ portion of a workflow statement using a custom integration via a third-party API?



🗨 Link to Slack thread

11 replies

Userlevel 5
Badge +2

Hey Ryan — yes, there is a way to do this via. Pre-Request script

Userlevel 5
Badge +2

The pre-request script for a custom integration can handle a payload sent to it and run a Workflow or Action accordingly

Userlevel 5
Badge +2

we are currently working on a feature that will make this process more seamless and less code-heavy

Userlevel 5
Badge +2

but it’s possible today nonetheless

Badge

So would that pre-request portion basically be multiple GET requests to the API endpoint?

Badge

Also, do you have any docs on how this could be done at some kind of high/theoretical level--or an example , or something ?

Userlevel 5
Badge +2

The pre-request script would accept a POST from an external source and then can make GET requests within the script as needed

Userlevel 5
Badge +2

I think we have something documented internally, I’ll look around (cc: @catherine.achukwu @justin.little @jb.lovell)

Userlevel 2
Badge +2

Yea, this functionality/feature is reliant on events being sent to BetterCloud from some other systems. We don’t currently support polling, except in our native/backend connectors.

Userlevel 2
Badge +2

HOWEVER, there are apps/scripts you could set up yourself that polls the data on some interval and you could send that info to the BetterCloud API to act as a custom When event. @rlinde

Badge

Thanks that is helpful

Reply