@YvetteLans do you still need help on this?
I can’t tell from the post whether the automation is running in the Campagne activiteit db or somewhere else.
If the former, then perhaps the answer is as follows:
{!Geklikt op URL:Name!}
<%= Entity.Geklikt op URL.map((url) => url.Name).join(` | `) %>
So if I got it right, you’re trying to use markdown to get info (Url) from a collection of Geklikt op URL entities, linked to a Campagne activiteit entity inside an automation running on an Archief entity (which can be linked to many Campagne activiteit entities).
I don’t think it is possible I’m afraid.
Markdown allows you to dynamically insert the values of simple fields of the triggering entity, as well as the values of fields in linked entities, but it seems in this case you are trying to get the values of fields in entities linked to entities linked to the triggering entity.
The only way is with an intermediate formula field, which it sounds like you have done.
To automatically embed clickable links to Geklikt op URL within Campagne activiteit rich text fields, consider a script that generates and inserts Fibery link formats /[/[#^${databaseId}/${Entity.id}/]/] directly. Trigger this script on entity updates/creations for seamless integration. This approach bypasses the need for manual linking or formulas, simplifying your workflow.
Hope this helps streamline your process!
Thanks! But the entity will be deleted after the archive automation is done. So a URL to the entity won’t work (the URL I mentioned is the URL that’s part of an email campaign). A script is possible but for now it works with the little formula in between