# Markdown template in the "name" field of generated documents (automation)

**URL:** <https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289>\
**Category:** Bugs & Issues\
**Created:** [December 2, 2021, 10:00pm UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289 "2021-12-02T22:00:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgrouchevoi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgrouchevoi/32/4397_2.png) [@mgrouchevoi](https://community.fibery.io/u/mgrouchevoi)\
**Post date:** [December 2, 2021, 10:00pm UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289/1 "2021-12-02T22:00:50Z")

</div>

Hello guys,

please check this issue:  
I’m using an automation rule which creates a document with a name of the entity it is linked to. The markdown template is not working for the document name field. ☹  
For the description field it is working fine.

 ![markdown_name](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/6/6ec673637cdee53a548eb21e78305afc35ad8087.jpeg)

Can you fix this? Thanks!

---

<div class="post-metadata">

**Author:** ![mgrouchevoi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgrouchevoi/32/4397_2.png) [@mgrouchevoi](https://community.fibery.io/u/mgrouchevoi)\
**Post date:** [December 2, 2021, 10:01pm UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289/2 "2021-12-02T22:01:40Z")

</div>

Here is the block with the linked documents:

 ![markdown_name_view](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/ac6f5d89aa9075b77b7d635ee57111a73e1e0385.jpeg)

**Update: this script works for me, but how can I use the name field of the entity?**

```auto
<% NAME("Full Read: " + Entity.Id) %>

```

---

<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:** [December 3, 2021, 7:53pm UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289/3 "2021-12-03T19:53:05Z")

</div>

You can get any fields you need using standard script functions, e.g. getEntityById

---

<div class="post-metadata">

**Author:** ![mgrouchevoi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgrouchevoi/32/4397_2.png) [@mgrouchevoi](https://community.fibery.io/u/mgrouchevoi)\
**Post date:** [December 3, 2021, 10:56pm UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289/4 "2021-12-03T22:56:16Z")

</div>

An example how to get the name field of the entity by the getEntity.ById function would be helpful. I have zero knowledge in scripting. ☹  
Thanks.

---

<div class="post-metadata">

**Author:** ![mgrouchevoi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgrouchevoi/32/4397_2.png) [@mgrouchevoi](https://community.fibery.io/u/mgrouchevoi)\
**Post date:** [December 7, 2021, 8:33am UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289/5 "2021-12-07T08:33:16Z")

</div>

Any references where I can read and learn the usage of standard script functions by myself? 🙄

---

<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:** [December 7, 2021, 9:00am UTC](https://community.fibery.io/t/markdown-template-in-the-name-field-of-generated-documents-automation/2289/6 "2021-12-07T09:00:50Z")

</div>

> **[Fibery API](https://api.fibery.io/)**
>
> The Fibery API provides a way to integrate Fibery with your external systems and automate routine tasks.

Check out the action button section for the available functions and their syntax.

And there’s some useful stuff here:

> [@Action Buttons Q&A](https://community.fibery.io/t/action-buttons-q-a/1172):
>
> Hi everyone! So, while pushing my way through coding Action Buttons (blindly, dissecting the examples, making up for lack of JS knowledge with pure denial to accept failure), I thought: it would be really cool to have a thread where one can ask a basic question about Action Buttons! Something one feels everyone else probably knows. Something presumably so small it feels awkward to start a separate thread for it. Like these: Q1: How can I check if an entity’s state === its final state? Checkin…
