Is there a way to include an image generated by the Barcod module in the Google Mail module body (content)? The generated image does not have a CID, so using an img tag with a src=”cid:XYZ” attribute is probably not an option.
Thank you!
Is there a way to include an image generated by the Barcod module in the Google Mail module body (content)? The generated image does not have a CID, so using an img tag with a src=”cid:XYZ” attribute is probably not an option.
Thank you!
The barcode module produces a PNG file. Have you tried encoding it as base64 in the img tag?
The content ID of attachments can be specified alongside the file.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
Encoding it with base64 didn’t work for me - Gmail wouldn’t show any content. I found while searching that a lot of clients doesn’t support this due to the security concerns ://
Thanks for the response! Unfortunately, I need to map the whole Attachments section due to including unkown number of attachments from two distinct sources, as show on the picture below. Can you think of any other way?
Sure,
If you have an array of collections, in programming terms, this is called a non-primitive array (of objects).
The Array Aggregator module is very powerful because it allows you to build a new complex array of collections that matches a later module’s field to map multiple items (collections) to it. Such fields initially would allow you to manually add items, but you can toggle the “Map” switch to the “on” state and map a whole array into a single field.
This is done by selecting the “Target structure type” in an Array Aggregator module.
As you can see from the above example, the “Map” toggle on complex fields are used when you have an array variable (like from an array aggregator). Other combinations of modules may also allow you to generate an array that matches a future field’s array structure, like “Aggregate to JSON + Parse JSON”, or “Create JSON + Parse JSON”, but this is an advanced topic.
Question: Are you mapping your array into a field that accepts more than one item/collection?
Then, once you know the required structure of the field, you can use the JSON “Parse JSON” module to create a new Collection containing details of the new item, before adding it to the array.
For more information, see “Mapping with arrays” in the Help Centre. You should also do the Make Academy, which also covers the use of Iterators & Aggregators.
Here is an example of how your scenario could look like:

This is just an example. Your final solution may or may not look like this depending on your requirements and actual data.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
You got me on the right way, however, I used a litle bit different solution. I simply added the array aggregator with “Gmail - attachment” target structure and included Content ID there with Barcode as the file. In the gmail module, I used merge function with Google drive files array and this Barcode array.
Thank you!!!