<?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: How to disable a tool container based on DateTime - Scheduled workflow in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617843#M7059</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/6354"&gt;@jensroy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could probably simplify this using a detour tool. It would look something like the image below.&amp;nbsp;&lt;/P&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="JustinBabbitt_0-1597231476922.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127939i939DFFEB681A34FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinBabbitt_0-1597231476922.png" alt="JustinBabbitt_0-1597231476922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that the Text Box tool is hidden, so it won't show up in the interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way to use the Detour is without a Detour End, which would allow you to pick one set of actions if it is within the timeframe you specify and another action (or inaction) when it is outside of the timeframe.&amp;nbsp;&lt;/P&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="JustinBabbitt_1-1597231818578.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127942i4856BF9D3D951B8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinBabbitt_1-1597231818578.png" alt="JustinBabbitt_1-1597231818578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this is helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 11:31:35 GMT</pubDate>
    <dc:creator>JustinBabbitt</dc:creator>
    <dc:date>2020-08-12T11:31:35Z</dc:date>
    <item>
      <title>How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617732#M7056</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing a weird issue here. I have a workflow that i have saved on the server. If I run it manually from the server Gallery then it works as intended. But the same job "fails" when I run it on a schedule.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workflow issue - datetime.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127893i8371D65A89C318AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="workflow issue - datetime.png" alt="workflow issue - datetime.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I want is the workflow to either go through container 1 or container 2. Below is the formula I use in the action tools but the true/false is opposite. So if datetimenow is between 08:00 and 23:59 then the top container is enabled and the bottom one is disabled. If the date is not in that range, then the top container is disabled and the bottom on is enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if DateTimeNow() &amp;gt;= ToDateTime(left(datetimenow(),10)+" 08:00:00")
and DateTimeNow() &amp;lt;= ToDateTime(left(datetimenow(),10)+" 23:59:59")
then "True" else "False" endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this date check only works if I run it manually from the gallery. As you can see from the screenshots, the manual run outputs only 1 record, while the scheduled one outputs 2 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I need this to work is that we are not allowed to run ETL jobs outside the time range, but Alteryx server cannot schedule "run every hour, every day, but only between 08:00 and 23:59". So I want to schedule the workflow to run every hour, but if the datetime is out of range, then the whole workflow is disable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a video of the workflow behaviour:&lt;/P&gt;&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ8tG01Zw7i8&amp;amp;type=text%2Fhtml&amp;amp;schema=youtu&amp;amp;display_name=YouTube&amp;amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQ8tG01Zw7i8" width="200" height="112" scrolling="no" title="YouTube embed" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:58:46 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617732#M7056</guid>
      <dc:creator>jensroy</dc:creator>
      <dc:date>2020-08-12T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617829#M7058</link>
      <description>&lt;P&gt;I think what you need is to use the detour tools&amp;nbsp;&lt;A href="https://help.alteryx.com/current/designer/detour-tool" target="_blank" rel="noopener"&gt;https://help.alteryx.com/current/designer/detour-tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joshuaburkhow_0-1597231007839.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127935i7DF7982FF5AC2F22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joshuaburkhow_0-1597231007839.png" alt="joshuaburkhow_0-1597231007839.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which you could build logic that goes to left/right actions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can use most interface tools into the 'condition' tool&amp;nbsp;&lt;A href="https://help.alteryx.com/current/designer/condition-tool" target="_blank" rel="noopener"&gt;https://help.alteryx.com/current/designer/condition-tool&lt;/A&gt;&amp;nbsp;and then based on the condition you can enable/disable a container or containers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:20:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617829#M7058</guid>
      <dc:creator>joshuaburkhow</dc:creator>
      <dc:date>2020-08-12T11:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617843#M7059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/6354"&gt;@jensroy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could probably simplify this using a detour tool. It would look something like the image below.&amp;nbsp;&lt;/P&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="JustinBabbitt_0-1597231476922.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127939i939DFFEB681A34FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinBabbitt_0-1597231476922.png" alt="JustinBabbitt_0-1597231476922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that the Text Box tool is hidden, so it won't show up in the interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way to use the Detour is without a Detour End, which would allow you to pick one set of actions if it is within the timeframe you specify and another action (or inaction) when it is outside of the timeframe.&amp;nbsp;&lt;/P&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="JustinBabbitt_1-1597231818578.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127942i4856BF9D3D951B8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinBabbitt_1-1597231818578.png" alt="JustinBabbitt_1-1597231818578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this is helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:31:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617843#M7059</guid>
      <dc:creator>JustinBabbitt</dc:creator>
      <dc:date>2020-08-12T11:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617852#M7060</link>
      <description>&lt;P&gt;I wish I could use the detour tool. But the thing is, I need to disable reading from any data source if datetimenow() is out or range.&lt;/P&gt;&lt;P&gt;The condition tool outputs True or False. The outcome of my Action Tool is also True or False. I just tested with the Condition tool as well.&lt;/P&gt;&lt;P&gt;The True output connects to Tool Container 1, and enables it if the datetimenow() is in range.&lt;/P&gt;&lt;P&gt;The False output connects to Tool Container 2, and enables it if the datetimenow() is out range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default state is that both tool containers are disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;If I run it manually, then I get the desired outcome.&lt;/P&gt;&lt;P&gt;If i run it by schedule (schedule once) then I get the exact same error as before. The date condition is not evaluated at all, so both containers remained disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the server behave differently if a named user is manually pressing run, compared to if the analytical app is ran automatically from the scheduler &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:50:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617852#M7060</guid>
      <dc:creator>jensroy</dc:creator>
      <dc:date>2020-08-12T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617855#M7062</link>
      <description>&lt;P&gt;I have now added a video that show the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:59:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617855#M7062</guid>
      <dc:creator>jensroy</dc:creator>
      <dc:date>2020-08-12T11:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617856#M7063</link>
      <description>&lt;P&gt;That is interesting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to consider when testing/trying out options in the Scheduler is that if you schedule a workflow or app, then make changes to that app, you must Update the workflow OR Delete then reschedule the app using the 'new' version for the app changes to be recognized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thing is you may want to try to save the workflow/app as a package (yxzp file) and schedule the package. If you don't know how to do that, go to Options: Export Workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin Babbitt&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:03:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617856#M7063</guid>
      <dc:creator>JustinBabbitt</dc:creator>
      <dc:date>2020-08-12T12:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617862#M7065</link>
      <description>&lt;P&gt;Yes, puzzles are fun!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to upload a new version to the Gallery, but that also had the same behavior. Works with manuel run but not with schedule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to export it, but how can I schedule a yxzp? I would need to open the package, and what I schedule would then be a a workflow or an app?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:15:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617862#M7065</guid>
      <dc:creator>jensroy</dc:creator>
      <dc:date>2020-08-12T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617871#M7066</link>
      <description>&lt;P&gt;Here is an interesting update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just connected my action tool to the text input tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to see what the action tool was doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in Field1 - Row 1 i wrote the text 2020-01-01 00:00:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I used the action tool to "Update value with formula".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running this manually gave me the exact time for the workflow run.&lt;/P&gt;&lt;P&gt;Running this with scheduler changed NOTHING so the output was&amp;nbsp;2020-01-01 00:00:00. It did not execute the datetimenow() function coming from the Action tool.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:46:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617871#M7066</guid>
      <dc:creator>jensroy</dc:creator>
      <dc:date>2020-08-12T12:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617900#M7070</link>
      <description>&lt;P&gt;Hi there - Are you using the Open Debug option in the Interface Designer to test that the Action Tools are configured correctly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinBabbitt_0-1597239860129.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127954iE436C3AFB3132F77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinBabbitt_0-1597239860129.png" alt="JustinBabbitt_0-1597239860129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you set up a second Action Tool with the same logic, and connect it to a Text Input, you can see what is being fed to your intended tools. It looks something like this:&amp;nbsp;&lt;/P&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="JustinBabbitt_1-1597239909739.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/127955i7A4F412935D0E735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinBabbitt_1-1597239909739.png" alt="JustinBabbitt_1-1597239909739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 13:46:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617900#M7070</guid>
      <dc:creator>JustinBabbitt</dc:creator>
      <dc:date>2020-08-12T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617906#M7071</link>
      <description>&lt;P&gt;Hmm i wont be able to check it this way, because everything works fine if I run it manually. Correct values are getting passed on. It only fails when it is ran from the Gallery and at the same time that an automatic schedule is doing the execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my current workaound is that I use the Test tool. The Test tool throws an error if datetime is out of range. The bad part about this, is that the server logs will be clogged with faulty error messages.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 13:59:50 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617906#M7071</guid>
      <dc:creator>jensroy</dc:creator>
      <dc:date>2020-08-12T13:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617910#M7072</link>
      <description>&lt;P&gt;When you run an analytic app, or macro that uses an Action Tool, you have to run it as an App for the Action tool to work either by Debug or "Run as Analytic App" (wand). If you run it as a workflow when testing, it will take whatever values you have in the tools to work, which can create false positive testing results locally but could explain why they aren't working in the gallery/server environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:06:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/617910#M7072</guid>
      <dc:creator>JustinBabbitt</dc:creator>
      <dc:date>2020-08-12T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a tool container based on DateTime - Scheduled workflow</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/618089#M7075</link>
      <description>&lt;P&gt;I have solved this problem by putting the main logic into a Batch macro then using the Control Parameter to Delete Tool from Workflow the Container that has the stuff I don't want to run.&amp;nbsp; Here's my real life example.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(The use case is sending a REST API call to SendGrid in which I don't know if there will be attachments to said email)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Inside the supportng macro that is creating the JSON for the attachments part.&amp;nbsp; &amp;nbsp;I need something to come out the macro regardless of input.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Control Parameter takes a Bool and deletes one or the other Container.&amp;nbsp; Here, a True deletes the bottom Container and a False, the top one.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David-Carnes_0-1597257036387.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/128015i5F4CCD1057DF74F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David-Carnes_0-1597257036387.png" alt="David-Carnes_0-1597257036387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside the SendGrid macro that the users interact with. In this case I count the incoming records then convert the interger into a Bool by changing the datatype.&amp;nbsp; A zero translates into False and any number above that becomes True.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David-Carnes_1-1597257470526.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/128016iF4E83ED29937BF51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David-Carnes_1-1597257470526.png" alt="David-Carnes_1-1597257470526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 18:38:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-disable-a-tool-container-based-on-DateTime-Scheduled/m-p/618089#M7075</guid>
      <dc:creator>David-Carnes</dc:creator>
      <dc:date>2020-08-12T18:38:16Z</dc:date>
    </item>
  </channel>
</rss>

