This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
bw:bizweaver_tips [2020/06/04 11:25] akoehler created |
bw:bizweaver_tips [2020/06/08 09:15] (current) |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Dealing with invalid email addresses ===== | ===== Dealing with invalid email addresses ===== | ||
| - | If the Bizweaver email tool is configured to send an email from a data field that contains email addresses and if a invalid email address is passed, the workflow can stop with errors. The following SQL statement examples can help find bad emails in the data on the SAP Contact Persons Table (OCPR). | + | If the Bizweaver email tool is configured to send an email from a variable |
| Below is to check if the email is not properly formatted, this will not return any emails that are incorrect. | Below is to check if the email is not properly formatted, this will not return any emails that are incorrect. | ||
| Line 26: | Line 26: | ||
| and isnull(E_MailL,'' | and isnull(E_MailL,'' | ||
| </ | </ | ||
| + | |||
| + | ===== Adding Multiple Attachments to Emails ===== | ||
| + | |||
| + | Below is a method on how to add multiple attachments to an email by way of a zip file. The program that is being used is **7zip**, this is the only prerequisite needed to make this process work. This is just an example and could change depending on how you are using this functionality. | ||
| + | |||
| + | * Example workflow | ||
| + | {{ : | ||
| + | |||
| + | * 1. Define the proper variables using the Variables tool. | ||
| + | * Outfile is the zip file that 7zip is creating. | ||
| + | * This path is in " | ||
| + | * If saved in the above folder path you must create the " | ||
| + | * InFiles is the folder with all the files that are being zipped. | ||
| + | * ' | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | * 2. Using the WF Exec Tool to have 7zip call the input folder to zip and have it output the zip file to the desired location. | ||
| + | * Full Path: This is the location of 7zip.exe | ||
| + | * Add Arguments: This is the command line prompt needed to zip the input file. This also tells the 7zip the name and location of the output file. | ||
| + | * Wait for Execute: This will wait for 7zip to finish the process of zipping the files before continuing the workflow. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | * 3. Add the variable for the OutFile in the attachments section of the Email tool to add the zipped file to the email. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||