Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!
Adding an image to the body of an email message doesn't seem like a big deal, especially if you use the ~%InsertPicture macro ;) But what if you have several groups of images located in several folders on your OneDrive and want to firstly select a folder and only afterwards to decide which of the images it contains to insert, what then? Sounds like a touch of interactivity is badly needed, doesn't it? :)
In Shared Email Templates, you can create a dialog with two dropdown lists displayed one below the other: the first dropdown list will contain the names of the folders where you want to look for the images to be inserted and the second one will be for the names of the image files themselves. So you'll be able to choose both a folder and an image that is stored in it, provided that the image file names are the same for each folder. Such a dialog will make your template truly interactive. Let's see how to build it in a template.
Note. This is a master level "recipe" :) Perhaps your task can be solved much more easily. If you feel like asking us for help, just let us know by leaving a comment at the bottom of this page or sending an email to support@ablebits.com.
The first thing you need to do is create a simple dataset that will contain the names of your OneDrive folders and their full paths. To add a path of a folder to your dataset, click the Insert Macro icon in a dataset cell:
The Select macro sidebar will appear in your browser. Enter "insert picture from OneDrive" into the search box there and select the option you'll see:
Choose any of the folders that you're going to add to the first dropdown list and click the name of any file that is located there. Then click the Copy link icon:
The full file path will be copied to the clipboard. Paste it into your dataset, and then delete the file name and the file extension. By doing this, you'll convert the file path you copied into the folder path you need.
Finally, your dataset will look like in the screenshot below:
Now, when your dataset is ready, it's time to put two of the Shared Email Templates macros into play: ~%InsertPicture and ~%WhatToEnter.
Note. Make sure that the image file names are the same for each folder.
Then delete the ~%WhatToEnter macro placeholder that you added to your template in Step 8.
And don't forget to save the template, of course :) When you're pasting it into an email message, the trio of the macros will start performing to make the embedded dialog show up:
So you'll easily select the necessary folder and image. Well done, isn't it? ;)
Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!