Looking for Starter Kits? Head to the Community Gallery! Now formatted as YXIs for easy installation.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to export messages from the results window

6 - Meteoroid

Hello - Does anyone know how to export the message (log) from the results window and use it as a input within the current canvas? Thanks

12 - Quasar

To be able to run from the command line you need API/Scheduler for Desktop or Server and you said you do not have that.  Now you can run other programs and batch files without API/Scheduler or Server but not Alteryx modules.


But if you did have API/Scheduler...

Call "G:\xxxxxxxx\Scheduling\ScheduleBatchFiles\RunDailyBatch.bat" 1> "%logfilenameB%" 2>&1

go to https://ss64.com for more on CMD or PowerShell to see difference of START vs CALL commands and to better understand the redirects 1> or > or 2>&1.


The above would run a batch file and capture the screen results to the file "logfilenameB" which in this example is a filename in a variable. you could explicitly reference the filename or save it to a variable and reference the variable as I did.  Reasons vary according to your needs and I always write output to text ".txt" for ease of write and read to parse.


If running an Alteryx module I would use

START "G:\xxxxxxxx\Scheduling\ScheduleBatchFiles\RunMyFlow.yxmd" 1> "\\Path\Path\Alteryx Log Files\myLogfile.txt%" 2>&1

1> redirects/captures messages associated with good execution 2>$1 says capture the errors as well to the same output...windows splits results into 2 streams, good and bad messaging if you will.

In the case of Alteryx modules the messaging being redirected to the output file is the "Output Log".


You could fire an App but it would not actually do anything because this method has Alteryx expecting all inputs (interface questions) to be answered/passed in the START/Call command.  So you never see the interface popup...you can pass the interface responses as parameters but I will not take time here for that.