# Markdown to insert views

**URL:** <https://community.fibery.io/t/markdown-to-insert-views/3658>\
**Category:** Get Help\
**Created:** [December 6, 2022, 6:27am UTC](https://community.fibery.io/t/markdown-to-insert-views/3658 "2022-12-06T06:27:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Post date:** [December 6, 2022, 6:27am UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/1 "2022-12-06T06:27:10Z")

</div>

Is there markdown method or api method (using \<% %\>) to use the newly minted [inline view blocks](https://community.fibery.io/t/december-1-2022-insert-existing-views-into-rich-text-form-view-covers/3634#insert-existing-views-into-rich-text-documents-experimental-1) (which are 😘) ? I noticed that in the UI you can use {{}} to insert them but I don’t know what reference needs to go in between. The markdown exporter doesn’t seem

I have daily notes pages that are generated each day. I would really love to be able to automatically include a table/board view of my tasks and my daily calendar in each dialy notes entity.

---

<div class="post-metadata">

**Author:** ![cover](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cover/32/11891_2.png) [@cover](https://community.fibery.io/u/cover)\
**Post date:** [October 6, 2023, 4:21pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/2 "2023-10-06T16:21:37Z")

</div>

I’ve got the same question…still see no reply here 🙂 Maybe this questions is answered elsewhere?

My use-case is to auto-generate weekly cadence (ie sprint) composed of different list of entities.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 6, 2023, 4:45pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/3 "2023-10-06T16:45:10Z")

</div>

> [@cannibalflea](#):
>
> Is there markdown method or api method (using \<% %\>) to use the newly minted [inline view blocks](https://community.fibery.io/t/december-1-2022-insert-existing-views-into-rich-text-form-view-covers/3634#insert-existing-views-into-rich-text-documents-experimental-1)

Basically, no.

Views cannot be ‘created’ on the fly.  
You might want to have a look at this topic:

> [@How to create a dynamic link that shows a view filtered by current entity?](https://community.fibery.io/t/how-to-create-a-dynamic-link-that-shows-a-view-filtered-by-current-entity/5152):
>
> Use case: I want to create a step by step guide in the description field of a meeting entity. The guide is used by the facilitator to fill in meeting information. I do not want to embed fields, but want these to be accessible through a link in the description text. The link needs to open in a new panel at the right, and need to be filtered by the current meeting where the link is clicked. In the screenshot above, I show an example link that wor…

---

<div class="post-metadata">

**Author:** ![cover](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cover/32/11891_2.png) [@cover](https://community.fibery.io/u/cover)\
**Post date:** [October 27, 2023, 4:38pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/4 "2023-10-27T16:38:03Z")

</div>

Never got time to follow-up. Thanks for reply @Chr1sG but what about inserting through markdown already existing view? I mean not manually by typing “\<\<” but through automations pre-fill some rich text field with some views?

For example I have some weekly cadence, or sprints if you want, and when new Sprint is created I want to (a) insert into Description already existent view with Sprint tasks…and ideally (b) to programmatically change filtering, so if I have board view filtered by Sprint #1 and I want to insert this view filtered by just created Sprint #2.

Again many thanks for your input! 🙏

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 27, 2023, 5:14pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/5 "2023-10-27T17:14:53Z")

</div>

Unfortunately not. Markdown doesn’t currently support embedded views.  
I assume the Tasks are linked to the Sprint, so you already have a relation view (and can add more variants if needed).  
What are the reasons why you want a context filtered view of Tasks in the Description as well?

---

<div class="post-metadata">

**Author:** ![cover](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cover/32/11891_2.png) [@cover](https://community.fibery.io/u/cover)\
**Post date:** [November 13, 2023, 3:11pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/6 "2023-11-13T15:11:19Z")

</div>

Thanks for staying in touch! It’s not my main to need to have context filtered view but to generate Description through automation (markdown template) so it contains some particular (already existent) view, thanks!

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [November 13, 2023, 5:55pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/7 "2023-11-13T17:55:44Z")

</div>

So do you want the automation to always populate the description with the same existing view every time it runs?

---

<div class="post-metadata">

**Author:** ![cover](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cover/32/11891_2.png) [@cover](https://community.fibery.io/u/cover)\
**Post date:** [November 14, 2023, 1:24pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/8 "2023-11-14T13:24:01Z")

</div>

Yes, that’s right. So further I would customise filtering manually.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [November 14, 2023, 1:36pm UTC](https://community.fibery.io/t/markdown-to-insert-views/3658/9 "2023-11-14T13:36:47Z")

</div>

In that case, probably the easiest thing to do is to add the embedded view to a rich text field in an existing entity, and write a (temporary) script to get the rich text contents in html, e.g.

```auto
const fibery = context.getService('fibery');

for (const entity of args.currentEntities) {
    const entityWithExtraFields = await fibery.getEntityById(entity.type, entity.id, ['Description']);
    const content = await fibery.getDocumentContent(entityWithExtraFields['Description']['Secret'], 'html');
    console.log(content);
}

```

Then you can write an automation which will populate the rich text field of an entity on creation, using the content that you have just retrieved, e.g.

```auto
const fibery = context.getService('fibery');

for (const entity of args.currentEntities) {
    const entityWithExtraFields = await fibery.getEntityById(entity.type, entity.id, ['Description']);
    const content = '<div data-view-id="42328430-ea7a-11ed-a5aa-d3e002f0b1c6" contenteditable="false" data-node-height="400" data-node-width="900" data-node-page-width="true" data-node-full-width="false"></div>';
    await fibery.setDocumentContent(entityWithExtraFields['Description']['Secret'], content, 'html');
}

```
