<?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 smart tasks example in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/smart-tasks-example/m-p/119134#M5860</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a question about smart task. I need to run a smart task that executes only if a particular policy is installed to a specific firewall. Reading through the documentation i see the below which should get me what I want but my question is how to see the trigger data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;Run Script - Runs a pre-defined Repository Script. The script gets the trigger's data as the first&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;parameter. The trigger's data is passed as Base64 encoded JSON data, which can be decoded to&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;implement custom business logic.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i can see the trigger data, i can use that logic in my script to parse the policy name and firewall and decide on some action based on those values. The dilemma I am having is how to see the trigger data that gets passed? Can anyone share any example of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 May 2021 03:27:51 GMT</pubDate>
    <dc:creator>rkcp</dc:creator>
    <dc:date>2021-05-22T03:27:51Z</dc:date>
    <item>
      <title>smart tasks example</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/smart-tasks-example/m-p/119134#M5860</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a question about smart task. I need to run a smart task that executes only if a particular policy is installed to a specific firewall. Reading through the documentation i see the below which should get me what I want but my question is how to see the trigger data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;Run Script - Runs a pre-defined Repository Script. The script gets the trigger's data as the first&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;parameter. The trigger's data is passed as Base64 encoded JSON data, which can be decoded to&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;implement custom business logic.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i can see the trigger data, i can use that logic in my script to parse the policy name and firewall and decide on some action based on those values. The dilemma I am having is how to see the trigger data that gets passed? Can anyone share any example of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 03:27:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/smart-tasks-example/m-p/119134#M5860</guid>
      <dc:creator>rkcp</dc:creator>
      <dc:date>2021-05-22T03:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: smart tasks example</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/smart-tasks-example/m-p/119135#M5861</link>
      <description>&lt;P&gt;It looks like it’s passed to your script as a base64 encoded JSON blob.&lt;BR /&gt;There’s an example here:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113314/highlight/true#M26045" target="_blank"&gt;https://community.checkpoint.com/t5/Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113314/highlight/true#M26045&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 03:52:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/smart-tasks-example/m-p/119135#M5861</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-05-22T03:52:52Z</dc:date>
    </item>
  </channel>
</rss>

