Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!
With the ~%WhatToEnter macro (~%WTE) nested within ~%Attach, you'll easily choose what file to use as an email attachment via the ~%WTE dialog when pasting your template. And the tandem of ~%WTE and ~%Attach will ensure that the file you select is attached even if the files of interest are scattered across different folders on your OneDrive.
Suppose you have discount coupons saved as PDF files in several folders on OneDrive and want to add them all to a dropdown list that will show up when you paste your template. Here's what you can do:
First of all, create a simple dataset and include full paths of your files in it. To get a file path, click the Insert Macro icon in a dataset cell.
In the search box on the Shared Email Templates pane, type in "attach from OneDrive" and select the corresponding option.
Select a file that you're going to use as an attachment and copy the file path by clicking the Copy link icon.
Then click Cancel.
Paste the copied link into the corresponding cell in your dataset.
Repeat the same for each of the files that are going to be attached. When you're done, save your dataset.
Tip. You can connect datasets from Excel files.
As soon as your dataset is ready, the tandem of ~%WTE and ~%Attach is to be added to your template.
You've just nested the ~%WTE macro within ~%Attach, and the macros are ready to do their job ;)
Don't forget to delete the ~%WTE macro placeholder you added in Step 2.
Try and paste your template to see the dialog where you can select an attachment for your email message:
Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!