# Anyone have a fibery markdown "cheat sheet"? Need URL of entity

**URL:** <https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640>\
**Category:** Get Help\
**Created:** [September 16, 2024, 1:05pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640 "2024-09-16T13:05:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [September 16, 2024, 1:05pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/1 "2024-09-16T13:05:29Z")

</div>

I feel like there’s likely some useful functions that maybe aren’t mentioned in the Fibery markdown page that could be helpful.

The seemingly simple one I’m looking for at the moment is just getting the URL of an entity! I know I can get the UUID with {id} but experimenting with {url} didn’t seem to work and I can’t seem to figure out what’s needed to get it.

Am I missing something obvious or does it require some complicated custom script?

---

<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:** [September 16, 2024, 2:13pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/2 "2024-09-16T14:13:50Z")

</div>

I don’t think you’re missing something obvious - I don’t think there is a simple markdown syntax for the entity view url.  
I think this should turn into a feature request, but I’m curious to know the use case.

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [September 16, 2024, 4:46pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/3 "2024-09-16T16:46:35Z")

</div>

Thanks, for clarifying it’s not as simple as I had hoped.

**Our use case:**  
When an “iteration” is done, our production team changes its state to “complete” which triggers a summary email to our finance team that tells them which client needs to be billed, how much, etc.

We would like this summary email to include a link to the entity that triggered it, because in some cases the finance team might need extra info or context that isn’t already in the email and we want that process to be as quick/easy as possible for them since they’re not fibery power users.

**Example of our desired email:**

> _Email Subject:_  
> A new iteration is complete and ready to be billed.
> 
> _Email Body:_  
> Client: Bob’s Burgers  
> Initiative: New Menu Marketing Campaign  
> Release: 1.0  
> Iteration: 3  
> Billing Amount: $10,000  
> Fibery Link: {url}

---

<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:** [September 16, 2024, 5:01pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/4 "2024-09-16T17:01:56Z")

</div>

To get a clickable URL, you would have to hardcode the bulk of it, and then append the public id, e.g.

`Fibery Link: [Click here](https://wowser.fibery.io/SpaceName/Iteration/{{Public Id}})`

Or if you need it to be totally generic, you would have to use scripting, perhaps taking advantage of the `getEntityUrl(type: string, publicId: string)` function.

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [September 16, 2024, 6:59pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/5 "2024-09-16T18:59:42Z")

</div>

Ok thanks, I’ve got it working in my email now with the following script from [this thread](https://community.fibery.io/t/function-to-get-the-uri-of-an-entity/4824/2):

```auto
{!Public-id!}
<% const utils = context.getService(`utils`); %>
<%= utils.getEntityUrl(Entity.Type, Entity["Public-id"]) %>

```

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [September 18, 2024, 5:26pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/6 "2024-09-18T17:26:49Z")

</div>

@Chr1sG do you know if getEntityUrl can also be used for entities that are related to the entity? If so, could you help me with the required syntax?

I was hoping I could do something like:

```auto
{!Client/Public-id!}
<% const utils = context.getService(`utils`); %>
<%= utils.getEntityUrl(Entity.Type, Entity["Client/Public-id"]) %>

```

to get the url of the “Client” entity that is related to the “Iteration” entity but it just comes back as “undefined”.

---

<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:** [September 18, 2024, 5:49pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/7 "2024-09-18T17:49:40Z")

</div>

You were close!

Try this:

```auto
{!Client.Public Id!}
<% const utils = context.getService('utils'); %>
<%= utils.getEntityUrl( **** , Entity['Client.Public Id']) %>

```

where you replace \*\*\*\* with the qualified name of the Client type, e.g. `'CRM/Client'`

Of course, if the triggering entity is also a Client, then `Entity.Type` will work fine

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [September 18, 2024, 10:45pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/8 "2024-09-18T22:45:23Z")

</div>

> [@Chr1sG](#):
>
> where you replace \*\*\*\* with the qualified name of the Client type, e.g. `'CRM/Client'`

Could you clarify what you mean by “qualified name”? I thought you were referring to the space/database of the entity I wanted the URL for, but it doesn’t seem to work (getting a “Sprints is not defined” error)

In my case, the automation is being triggered by an “Iteration” that is related to a “Client”, “Order”, “Initiative” & “Release”

Their spaces/databases are:  
Sprints/Iteration  
Sprints/Release  
Clients/Initiative  
Clients/Order  
Clients/Client

My code:

```auto
{!Client.Public-id!}
{!Order.Public-id!}
{!Initiative.Public-id!}
{!Release.Public-id!}
{!Public-id!}

<% const utils = context.getService(`utils`); %>

**Client:** <a href="<%= utils.getEntityUrl(Clients/Client, Entity['Client.Public Id']) %>">{{Client.Name}}</a><br>
**Order:** <a href="<%= utils.getEntityUrl(Clients/Order, Entity['Order.Public Id']) %>">{{Order.Name}}</a><br>
**Initiative:** <a href="<%= utils.getEntityUrl(Clients/Initiative, Entity['Initiative.Public Id']) %>">{{Initiative.Name}}</a><br>
**Release:** <a href="<%= utils.getEntityUrl(Sprints/Release, Entity['Release.Public-id']) %>">{{Release.Name}}</a><br>
**Iteration:** <a href="<%= utils.getEntityUrl(Entity.Type, Entity['Public-id']) %>">{{Name}}</a>

```

---

<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:** [September 18, 2024, 11:02pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/9 "2024-09-18T23:02:55Z")

</div>

> [@interr0bangr](#):
>
> I thought you were referring to the space/database of the entity I wanted the URL for

I was.

You need quotes around your space/database name, e.g.  
`'Clients/Client'`

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [September 19, 2024, 1:00pm UTC](https://community.fibery.io/t/anyone-have-a-fibery-markdown-cheat-sheet-need-url-of-entity/6640/10 "2024-09-19T13:00:53Z")

</div>

Aha! Thank you so much for your help!
