Tutorial #007: Creating and retrieving an Asset using Bloomreach XM and XIN mods
in Bloomreach XM Tutorials,
by Marnix Kok
last published on 15 August 2022
In this video we're going to talk about adding assets to our document type, and retrieving their values using the xinmods NPM module.
Our customer decided they want to add a recipe PDF to each of the recipe documents. So let's have a look at the video below to see how we would go about doing that.
The additional code looks like this:
const recipeDownload = await conn.getAssetUrlFromLink(doc.items.download); console.log("Recipe URL: ", recipeDownload);