<?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: Signing off  a great year with one last question! in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Signing-off-a-great-year-with-one-last-question/m-p/265772#M1950</link>
    <description>&lt;P&gt;Hi Henk,&lt;/P&gt;
&lt;P&gt;event is actually part of the params. So you can add the event property as part of the params to manually trigger a workflow with your own event payload. The event data in params will be available under the event() expression as usual.&lt;BR /&gt;This is actually exactly what happens when you manually run a workflow with an event trigger, and the UI asks you to provide a sample event.&lt;BR /&gt;Also, if you check out an execution of an event triggered workflow, you can see the event payload as part of the params. So the payload for the API triggered workflow &lt;EM&gt;/workflows/{id}/run&lt;/EM&gt; would be&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "input": {},
  "params": {
    "event": {
      "event.id": "-804131061630612141_1734610595013V2",
      "timestamp": "2024-12-19T12:16:48.191000000Z",
      "display_id": "P-24124496",
      "event.kind": "DAVIS_PROBLEM",
      "event.name": "Network availability monitor global outage",
      ...
    }
  }
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopherHejl_0-1734611827970.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25344iC2D2BBF9A252A6B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChristopherHejl_0-1734611827970.png" alt="ChristopherHejl_0-1734611827970.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;See you in the new year!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 12:40:45 GMT</pubDate>
    <dc:creator>ChristopherHejl</dc:creator>
    <dc:date>2024-12-19T12:40:45Z</dc:date>
    <item>
      <title>Signing off  a great year with one last question!</title>
      <link>https://community.dynatrace.com/t5/Automations/Signing-off-a-great-year-with-one-last-question/m-p/265764#M1949</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;Thanks for a great "2024 community year", see you in 2025!&lt;/P&gt;&lt;P&gt;And, one more for the road,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;EM&gt; From the documentation:&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;An API call can always trigger a workflow &lt;STRONG&gt;independent of the trigger type.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;You can run a workflow triggering it using params and input as data, so would it be nice to add the "event" as a data&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;option, for testing?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;(or if regular trigger is event =&amp;gt; input will be used as event)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes and see you in the new year!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 11:40:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Signing-off-a-great-year-with-one-last-question/m-p/265764#M1949</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2024-12-19T11:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Signing off  a great year with one last question!</title>
      <link>https://community.dynatrace.com/t5/Automations/Signing-off-a-great-year-with-one-last-question/m-p/265772#M1950</link>
      <description>&lt;P&gt;Hi Henk,&lt;/P&gt;
&lt;P&gt;event is actually part of the params. So you can add the event property as part of the params to manually trigger a workflow with your own event payload. The event data in params will be available under the event() expression as usual.&lt;BR /&gt;This is actually exactly what happens when you manually run a workflow with an event trigger, and the UI asks you to provide a sample event.&lt;BR /&gt;Also, if you check out an execution of an event triggered workflow, you can see the event payload as part of the params. So the payload for the API triggered workflow &lt;EM&gt;/workflows/{id}/run&lt;/EM&gt; would be&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "input": {},
  "params": {
    "event": {
      "event.id": "-804131061630612141_1734610595013V2",
      "timestamp": "2024-12-19T12:16:48.191000000Z",
      "display_id": "P-24124496",
      "event.kind": "DAVIS_PROBLEM",
      "event.name": "Network availability monitor global outage",
      ...
    }
  }
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopherHejl_0-1734611827970.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25344iC2D2BBF9A252A6B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChristopherHejl_0-1734611827970.png" alt="ChristopherHejl_0-1734611827970.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;See you in the new year!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 12:40:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Signing-off-a-great-year-with-one-last-question/m-p/265772#M1950</guid>
      <dc:creator>ChristopherHejl</dc:creator>
      <dc:date>2024-12-19T12:40:45Z</dc:date>
    </item>
  </channel>
</rss>

