Embed a View in a Rich Text field with an Automation?

I’m trying to create an automation that embeds a view inside a rich text field of an entity when it executes.

I think I am to use the “Prepend (or Append) content to Field” Action.

If I use the conventional way to create a link like this: View Name I can generate a link to the View (though it’s oddly not clickable—it just displays the URL, and I have to right-click and ‘open in a new browser tab’), but that’s not really helpful. I’d really like to have the view embedded so I can interact with it right there in the rich text field.

There’s no info on how to embed a view via an automation action. Can I do this?

Maybe via a markdown template? The guide says to mention an entity, I’d use this construction: [[#^DB_ID/ENTITY_ID]]. Just to see what would happen, I extracted the UUID of my view, and I tried using that in the Action like this: [[#^UUID]] and it prepended something called “unknown” into my rich text field. So it obviously didn’t find my View (and I think a mention is not really the same as an embed anyway).

Any ideas?

Anyone have an idea?

I’m pretty sure it’s not possible…

If you need the view for all the entities you can make a to-many relation view. Do you want to make the view only if it’s a certain condition?

What’s the use case?

You can’t make the embedded views in automations, but you can copy rich text from another entity using automation (with a embedded view)

So there might be a solution here depending on the use case. If it’s for templating.

Lmk!

You might want to check out these somewhat-related topics