In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Force user confirmation in macro?

TH
8 - Asteroid

I'm building a macro (or several macros) intended for use by a wide audience that would perform some simple windows shell commands without interrupting the workflow.

 

For the "Delete" command I'd like to implement a confirmation of some kind that would force the user to confirm at (or even during) runtime whether the particular file (or files, in the case of a wildcard) should be deleted.

 

I don't want the user to be able to put something into the input for the macro to make it automatically accept the delete action before anything is run. I want the confirmation to happen either when the user kicks off the workflow or the workflow gets to the macro.

 

Does a way exist to do this without creating an Alteryx app?

4 REPLIES 4
aatalai
15 - Aurora

As far as I am aware you can't block access to a macro. I am aware you can password protect and limit access via an analytical app though

Raj
16 - Nebula

@TH Try Using the interface designer tools to create a simple interface with a Yes/No question asking for confirmation before deletion. You can add a Text Input tool with a single field for the confirmation message and a Drop Down tool with Yes/No options.

TH
8 - Asteroid

Aatalai,

Thank you for your input. I won't plan to pursue this avenue then.

Raj,

I appreciate your answer. As I said in my initial post, I am trying very hard NOT to create an app. I want this to be a macro that others can use into their workflows.

apathetichell
20 - Arcturus

The question is if a powershell script in a macro will wait for a prompt - my hunch is no - and in my testing I'm seeing - 

Run Command (1) The external program "powershell.bat" returned an error code: 1

 when prompting for an input in a powershell script when run via a .bat file.

Labels
Top Solution Authors