Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering an incoming webhook automation using a send web request action from another automation

Aviram Raiffer August 10, 2021

I am trying to implement some automation, that is triggered by another automation, using send a webhook request ("Send web request" action) and incoming webhook request (trigger).

There is Automation A, that sends a web request to a URL which is defined to trigger Automation B.

For some reason, Automation B Audit Log shows no incoming webhook request, even though Automation A Audit Log shows the web request was sent successfully. 

I did check the "Allow Rule Trigger" checkbox which allows the rule to be executed by another rule (Checked for both just in case, even though I'm pretty confident it is only required for Automation B).

It might be also important to note that Automation A itself is triggered by an incoming webhook request.

Please help me understand why Automation B isn't triggered by Automation A.

Thanks ahead!

2 answers

1 accepted

0 votes
Answer accepted
Aviram Raiffer August 11, 2021

So I finally figured that out.

For the "Send web request" for "Webhook body" I chose "Custom Data".
Then, I defined the custom data to be {{someValue}}.

Instead, what I should have done is:
{
      "someValueName": "{{someValue}}"
}

It seems like if the Custom Data scheme is not right, even though the Audit Log states that the request was sent successfully, it is not received on the other side, and the automation is not even triggered (hence no explanatory log is showing).

By the way, there was no need to check the "Delay Execution..." checkbox (at least for my needs).

 

Thanks again for trying to help.

0 votes
Alex Koxaras _Relational_
Community Champion
August 10, 2021

Hi @Aviram Raiffer and welcome!

Make sure to check the following checkbox:

delay.png

Let me know if that will solve your problem!

Alex

Aviram Raiffer August 10, 2021

Hey @Alex Koxaras _Relational_, thanks for the quick response!

Unfortunately this did not solve my issue, it still seems like Automation B is not triggered at all...

Is there any other solution that you (or anyone) can think of?

Alex Koxaras _Relational_
Community Champion
August 11, 2021

Hi @Aviram Raiffer ,

Take a look at my implementation, which works. I have created two rules for you, and named them properly to distinguish them. Rule A is Send Webhook and rule B is Receive Webhook.

RULE A: SEND WEBHOOK

sendWebhook.png

 

RULE B: RECEIVE WEBHOOK

Details

Receive 2.png

Incoming webhook

ReceiveWebhook.png

 

Although my rule, in term of actions, is pretty simple, following the same setup would end up to fire Rule B.

Can you share your rules?

Aviram Raiffer August 11, 2021

Thanks again @Alex Koxaras _Relational_

I commented what fixed the issue for me.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events