Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Invoke Alteryx using Excel VBA

PrMc
6 - Meteoroid

Hello!

 

I have been using the following code in a model to run Alteryx

 

Sub Alteryx()

 

RunMod = ShellAndWait("""C:\Program Files\Alteryx\bin\AlteryxEngineCmd.exe"" ""\\[FOLDER PATH]\VBATest.yxmd""", 0, vbNormalFocus, PromptUser)

 

End Sub

 

The ShellandWait code is in another module and is  from here - http://www.cpearson.com/excel/ShellAndWait.aspx.

 

When I run the macro from Alteryx, it does find the Alteryx Engine but does not run the workflow.

 

What am I doing wrong? Is it a license issue?

2 REPLIES 2
AkimasaKajitani
17 - Castor
17 - Castor

If you run the workflow via Command Line, you must have Automation add-on license.

 

Please see this URL.
https://help.alteryx.com/current/designer/run-workflows-command-line

echuong1
Alteryx Alumni (Retired)

As mentioned above, you need to have a license that includes access to the AlteryxEngineCmd.exe. This is included with either one of our server products (Alteryx Server or Alteryx Analytics Hub) or a Scheduler license.

 

If you are interested in either, please reach out to your account executive. We'd be happy to discuss your options and set up a trial if you'd like!

Labels
Top Solution Authors