Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Workflow Event - parameters for mail settings

Mr_D
5 - Atom

Hi!

 

In my workflow I have an email notiication configured in Events (send email after run with errors). The workflow though has to be deployed to another environment in which another smtp server and from and to email addresses have to be specified. Instead of manually adjusting these settings after deployment I want to automate this (e.g. based on an input file / workflow variables ?) 

 

My question is the following: can parameters be defined that dynamically update the required inputs for the mail configuration in another environment?

 

Many thanks in advance!

Dennis

2 REPLIES 2
afv2688
16 - Nebula
16 - Nebula

Hello @Mr_D ,

 

you might be able to do something about it althoug it is going to be compicated. If you open a workflow with a notepad you will see there a section similar to this:

 

    <Events>
      <Enabled value="True" />
      <Event>
        <Description>After Run With Errors: Email to receiver@gmal.com</Description>
        <When>AfterError</When>
        <SendMail value="True" />
        <email_SMTPServer>smtp.gmai.com</email_SMTPServer>
        <email_Encryption>None</email_Encryption>
        <email_Port>25</email_Port>
        <email_Authentication value="False" />
        <email_Username>someuser</email_Username>
        <email_Password>4AA0A0EBF7AF4072ED7CE9F66C35762662919024771474DC738451908543A9F61</email_Password>
        <email_From>sender@gmail.com</email_From>
        <email_To>receiver@gmal.com</email_To>
        <email_Subject>%AppName%: %Module% - %NumErrors% Errors</email_Subject>
        <email_Body><![CDATA[User: %User%
ComputerName: %ComputerName%
WorkingDir: %WorkingDir%
Errors: %NumErrors%
ConversionErrors: %NumConvErrors%
Warnings: %Warnings%

%OutputLog%
]]></email_Body>
        <email_Attachments />
      </Event>

 

This is where the event is set up. You could modify those values based on an input with a replace for sure. The problem is going to be the password. This one is encrypted for obvious reasons and replacing that might not be that easy.

 

Maybe the "easy" way would be to create a bat file with the details for the email and send it through powershell (quite simple as you see 😅). Then, execute batfile1 for server1 and batfile2 for server 2

 

Regards

Mr_D
5 - Atom

hi! Thanks for the suggestion.

 

The bat file approach is what I am going to try out. 

 

Kind regards

 

 

Labels