<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Manual Trigger</title><link>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>Manual Trigger</title><link>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger</link><pubDate>Wed, 19 Jun 2019 21:07:34 GMT</pubDate><guid isPermaLink="false">04373b20-13dc-4272-9295-345f30a28f64</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger#comments</comments><description>Current Revision posted to Developer Training by Ben Tiedt on 06/19/2019 21:07:34&lt;br /&gt;
&lt;p&gt;Automations can be triggered from themes, widgets, other automations, or [[Plugins|plugins]] by enabling manual triggering. In situations where an artificial or custom&amp;nbsp;event&amp;nbsp;without [[Automation Event Definitions|API integration]] is required to trigger an automation, a manual trigger can be used.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Enabling_Manual_Triggering" name="Enabling_Manual_Triggering"&gt;&lt;/a&gt;Enabling Manual Triggering&lt;/h2&gt;
&lt;p&gt;Manual triggering allows an automation to be triggered programmatically from other [[Scripting|scripted customizations]] or [[Plugins|plugins]]. To enable manual triggering,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the automation&amp;#39;s &lt;strong&gt;Overview&lt;/strong&gt;, locate &lt;strong&gt;Triggers&lt;/strong&gt;, and check &lt;strong&gt;Manual Execution&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Take note of the inline documentation used to trigger the automation. This includes the identifier used to uniquely identify this automation in the APIs used to initiate a manual trigger.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-12-83/manual.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a id="Triggering_an_Automation_Manually" name="Triggering_an_Automation_Manually"&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;Triggering an Automation Manually&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Any [[Scripting|scripted customization]] (theme, widget, automation) or [[Plugins|plugin]] can trigger a manually triggerable automation using one of the APIs identified in the inline documentation for a manually triggerable automation in Automation Studio.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When triggering an automation manually, the relevant API accepts:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;The Automation&amp;#39;s Identifier. This identifies which automation should be triggered.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;Parameters. Custom parameters that should be provided to the automation from the caller. Any string-based key/value pairs can be provided.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;If there are enabled instances of the requested automation, they will be executed with the provided arguments and the response from the automation(s) will be returned to the caller for review. The response is always a string.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a id="Using_Manual_Triggers_in_Automation_Implementations" name="Using_Manual_Triggers_in_Automation_Implementations"&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;Using Manual Triggers in Automation Implementations&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When an automation is triggered manually, details about the manual execution are made available through the &lt;code&gt;context_v2_automationTrigger&lt;/code&gt; API which provides the following members:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Entity&lt;/strong&gt;. For manual triggers, the Entity is always &amp;quot;Manual&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Event&lt;/strong&gt;. For manual triggers, the Event is always &amp;quot;Trigger&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Arguments&lt;/strong&gt;. For manual triggers, Arguments is an object with two properties:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Parameters&lt;/strong&gt;. The key / value parameters, if provided, by the caller.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Response&lt;/strong&gt;. The string response to return to the caller.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;See the inline documentation for &lt;code&gt;context_v2_automationTrigger&lt;/code&gt; for more details about manual trigger arguments.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a id="Manual_Trigger_Notes" name="Manual_Trigger_Notes"&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;Manual Trigger Notes&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Manual execution&amp;nbsp;enablement is provided on an automation, however, the automation is not enabled until an instance is created in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Administration &amp;gt; Automations &amp;gt; Automations&lt;/strong&gt;. Until at least one instance of the automation is enabled, the manual execution will always return an empty response.&lt;/li&gt;
&lt;li&gt;Automations support multiple instances, but only one response can be provided to the caller. For automations that can be triggered manually, if there are multiple enabled instances defined in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Administration &amp;gt; Automations &amp;gt; Automations&lt;/strong&gt;, the automation will be executed multiple times (once for each instance) when a&amp;nbsp;manual&amp;nbsp;trigger is executed.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Manual Trigger</title><link>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger/revision/3</link><pubDate>Wed, 19 Jun 2019 21:07:18 GMT</pubDate><guid isPermaLink="false">04373b20-13dc-4272-9295-345f30a28f64</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger#comments</comments><description>Revision 3 posted to Developer Training by Ben Tiedt on 06/19/2019 21:07:18&lt;br /&gt;
&lt;p&gt;Automations can be triggered from themes, widgets, other automations, or [[Plugins|plugins]] by enabling manual triggering. In situations where an artificial or custom&amp;nbsp;event&amp;nbsp;without [[Automation Event Definitions|API integration]] is required to trigger an automation, a manual trigger can be used.&lt;/p&gt;
&lt;h2&gt;&lt;a id="Enabling_Manual_Triggering" name="Enabling_Manual_Triggering"&gt;&lt;/a&gt;Enabling Manual Triggering&lt;/h2&gt;
&lt;p&gt;Manual triggering allows an automation to be triggered programmatically from other [[Scripting|scripted customizations]] or [[Plugins|plugins]]. To enable manual triggering,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the automation&amp;#39;s &lt;strong&gt;Overview&lt;/strong&gt;, locate &lt;strong&gt;Triggers&lt;/strong&gt;, and check &lt;strong&gt;Manual Execution&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Take note of the inline documentation used to trigger the automation. This includes the identifier used to uniquely identify this automation in the APIs used to initiate a manual trigger.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-12-83/manual.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a id="Triggering_an_Automation_Manually" name="Triggering_an_Automation_Manually"&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;Triggering an Automation Manually&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Any [[Scripting|scripted customization]] (theme, widget, automation) or [[Plugin|plugin]] can trigger a manually triggerable automation using one of the APIs identified in the inline documentation for a manually triggerable automation in Automation Studio.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When triggering an automation manually, the relevant API accepts:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;The Automation&amp;#39;s Identifier. This identifies which automation should be triggered.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;Parameters. Custom parameters that should be provided to the automation from the caller. Any string-based key/value pairs can be provided.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;If there are enabled instances of the requested automation, they will be executed with the provided arguments and the response from the automation(s) will be returned to the caller for review. The response is always a string.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a id="Using_Manual_Triggers_in_Automation_Implementations" name="Using_Manual_Triggers_in_Automation_Implementations"&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;Using Manual Triggers in Automation Implementations&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When an automation is triggered manually, details about the manual execution are made available through the &lt;code&gt;context_v2_automationTrigger&lt;/code&gt; API which provides the following members:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Entity&lt;/strong&gt;. For manual triggers, the Entity is always &amp;quot;Manual&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Event&lt;/strong&gt;. For manual triggers, the Event is always &amp;quot;Trigger&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Arguments&lt;/strong&gt;. For manual triggers, Arguments is an object with two properties:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Parameters&lt;/strong&gt;. The key / value parameters, if provided, by the caller.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;Response&lt;/strong&gt;. The string response to return to the caller.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;See the inline documentation for &lt;code&gt;context_v2_automationTrigger&lt;/code&gt; for more details about manual trigger arguments.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;a id="Manual_Trigger_Notes" name="Manual_Trigger_Notes"&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;Manual Trigger Notes&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Manual execution&amp;nbsp;enablement is provided on an automation, however, the automation is not enabled until an instance is created in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Administration &amp;gt; Automations &amp;gt; Automations&lt;/strong&gt;. Until at least one instance of the automation is enabled, the manual execution will always return an empty response.&lt;/li&gt;
&lt;li&gt;Automations support multiple instances, but only one response can be provided to the caller. For automations that can be triggered manually, if there are multiple enabled instances defined in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Administration &amp;gt; Automations &amp;gt; Automations&lt;/strong&gt;, the automation will be executed multiple times (once for each instance) when a&amp;nbsp;manual&amp;nbsp;trigger is executed.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Manual Trigger</title><link>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger/revision/2</link><pubDate>Tue, 18 Jun 2019 18:47:18 GMT</pubDate><guid isPermaLink="false">04373b20-13dc-4272-9295-345f30a28f64</guid><dc:creator>Former Member</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger#comments</comments><description>Revision 2 posted to Developer Training by Former Member on 06/18/2019 18:47:18&lt;br /&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This option allows this automation to run via a method call from a widget, javascript, or in-process code such as a plugin. Syntax documentation and further links are provided when selecting this option.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-12-83/manual.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Manual Trigger</title><link>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger/revision/1</link><pubDate>Fri, 14 Jun 2019 20:53:13 GMT</pubDate><guid isPermaLink="false">04373b20-13dc-4272-9295-345f30a28f64</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/developer-training/65568/manual-trigger#comments</comments><description>Revision 1 posted to Developer Training by Ben Tiedt on 06/14/2019 20:53:13&lt;br /&gt;
&lt;p&gt;TBD&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>