<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Static Webhooks in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3120#M1452</link>
    <description>&lt;DIV dir="ltr"&gt;Thanks.&amp;nbsp; That helped a lot.&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;</description>
    <pubDate>Sat, 16 Jul 2022 01:17:37 GMT</pubDate>
    <dc:creator>mbunch</dc:creator>
    <dc:date>2022-07-16T01:17:37Z</dc:date>
    <item>
      <title>Custom Static Webhooks</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3118#M1450</link>
      <description>&lt;P&gt;I am trying to create a custom static webhook trigger using the sdk.  I added the connector and trigger to a recipe.  I invoke the trigger using the static trigger url and the recipe does not run.  I am using constant values for webhook_keys and webhook_key.  And, a timestamp in dedupe.  Any suggestions or working end-to-end examples?  Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 20:11:00 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3118#M1450</guid>
      <dc:creator>mbunch</dc:creator>
      <dc:date>2022-07-14T20:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Static Webhooks</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3119#M1451</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;The issue could be the difference between the payload you are sending vs payload processing in webhook_notification. &lt;/P&gt;&lt;P&gt;Please note the payload structure should match the object definition defined in the &lt;STRONG&gt;output_fields&lt;/STRONG&gt; block.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The below working example should give you an idea.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  title: 'Static Webhook',&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;  test: lambda do&lt;/P&gt;&lt;P&gt;    true&lt;/P&gt;&lt;P&gt;  end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;  webhook_keys: lambda do |params, headers, payload|&lt;/P&gt;&lt;P&gt;      '&lt;STRONG&gt;candidate&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;  end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;  triggers: {&lt;/P&gt;&lt;P&gt;    new_event: {&lt;/P&gt;&lt;P&gt;      title: 'New Candidate Event',&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      subtitle: "Triggers when a Candidate event is received " \&lt;/P&gt;&lt;P&gt;      "from ABC",&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      description: lambda do |input, picklist_label|&lt;/P&gt;&lt;P&gt;        "New &amp;lt;span class='provider'&amp;gt;candidate event&amp;lt;/span&amp;gt; " \&lt;/P&gt;&lt;P&gt;        "in &amp;lt;span class='provider'&amp;gt;ABC&amp;lt;/span&amp;gt;"&lt;/P&gt;&lt;P&gt;      end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      input_fields: lambda do |object_definitions|&lt;/P&gt;&lt;P&gt;        [&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;        ]&lt;/P&gt;&lt;P&gt;      end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      webhook_key: lambda do |connection, input|&lt;/P&gt;&lt;P&gt;          '&lt;STRONG&gt;candidate&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;      end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      webhook_notification: lambda do |input, &lt;STRONG&gt;payload&lt;/STRONG&gt;, extended_input_schema, extended_output_schema, headers, params|&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;payload&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      dedup: lambda do |record|&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;Time.now.to_i&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      end,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;      &lt;STRONG&gt;output_fields&lt;/STRONG&gt;: lambda do |object_definitions|&lt;/P&gt;&lt;P&gt;        [&lt;/P&gt;&lt;P&gt;          {&lt;/P&gt;&lt;P&gt;            name: 'id'&lt;/P&gt;&lt;P&gt;          },&lt;/P&gt;&lt;P&gt;          {&lt;/P&gt;&lt;P&gt;            name: 'first_name'&lt;/P&gt;&lt;P&gt;          },&lt;/P&gt;&lt;P&gt;          {&lt;/P&gt;&lt;P&gt;            name: 'last_name'&lt;/P&gt;&lt;P&gt;          }&lt;/P&gt;&lt;P&gt;         ]&lt;/P&gt;&lt;P&gt;        end&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Sample payload:&lt;/P&gt;&lt;P&gt;{"id": 1,"first_name": "Chandra","last_name": "V"}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 11:03:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3119#M1451</guid>
      <dc:creator>chandra</dc:creator>
      <dc:date>2022-07-15T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Static Webhooks</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3120#M1452</link>
      <description>&lt;DIV dir="ltr"&gt;Thanks.&amp;nbsp; That helped a lot.&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;</description>
      <pubDate>Sat, 16 Jul 2022 01:17:37 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/custom-static-webhooks/m-p/3120#M1452</guid>
      <dc:creator>mbunch</dc:creator>
      <dc:date>2022-07-16T01:17:37Z</dc:date>
    </item>
  </channel>
</rss>

