This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I want to send an email using Alteryx that has 5 attachments, and if some of the attachments do not have valid filepaths (the file does not exist), exclude those attachments from the email. Is this possible?
Sure thing. The attached solution will get you started and shows how to use a macro to perform an Inner XML update.
In the attached solution, the "Build XML" workflow figures out what files exist (and are within the email attachment file size) that should be attached and then builds the XML code necessary for the email macro to use. The Email macro just takes the (inner) XML code and updates the attachments section of the email tool before sending the email.
I'm attempting to do a similar task as in this thread and have tried out your macro but receive the following error: Error: Email Macro (80): The Action "Tool #5" has an error: ParseError: Expected entity name for reference at line 1 and column 130 while processing "Action_UpdateRawXml".
I wonder if you could assist with this?
My actual goal is not quite the same as mentioned in this thread. I have a workflow which creates files from un-joined data. I would like to attach these files to an email at the end of the workflow. However, some files may not get created, depending on the success of the join. I will create an obviscated workflow if you require it. Thank you very much for the assistance.