# How to refere to a user from a field (probably basic)

**URL:** <https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793>\
**Category:** Get Help\
**Created:** [January 10, 2023, 7:20pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793 "2023-01-10T19:20:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gomocoop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/gomocoop/32/6349_2.png) [@gomocoop](https://community.fibery.io/u/gomocoop)\
**Post date:** [January 10, 2023, 7:20pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/1 "2023-01-10T19:20:10Z")

</div>

So, I’m experimenting rules (super cool!) and I saw that text templating is supported, as in the example that Fibery itself gives: Something happened with {{Name}} on \<%= new Date()%\>

I understood that {{Name}} will show the name of the entity. Now, I have a task entity and I wanted the message to show the assigned person to that task. In the message that would be: Deadline for {{assigned person}} task is today!

This {{assigned person}} I’m trying to show is actually a Relation field inside the task entity, related to Users. So, is it possible to display the user selected on this relation for the task on the message?

Thank you! =)

---

<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:** [January 10, 2023, 8:50pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/2 "2023-01-10T20:50:09Z")

</div>

You’ll need to reference the name field of the linked relation.  
So if you have a relation to (a single) user and the field is called ‘Owner’, you would use  
{{Owner.Name}}

---

<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:** [January 10, 2023, 8:53pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/3 "2023-01-10T20:53:04Z")

</div>

It’s a bit different if it’s a relation to many users. In this case, you need to decide how to represent the user names. Should it be a list, a table or something else?

See ‘Using collection fields’ here

[https://the.fibery.io/User\_Guide/Guide/Markdown-templates---how-to-append-content-to-document-53](https://the.fibery.io/User_Guide/Guide/Markdown-templates---how-to-append-content-to-document-53)

---

<div class="post-metadata">

**Author:** ![gomocoop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/gomocoop/32/6349_2.png) [@gomocoop](https://community.fibery.io/u/gomocoop)\
**Post date:** [January 15, 2023, 5:53pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/4 "2023-01-15T17:53:03Z")

</div>

It didn’t work, actually.

When I run it, it displays [object Array].

This relation is a relation to the User database but only one user is selected from the database list. That’s the case you’re considering, right?

Thx!

---

<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:** [January 15, 2023, 7:52pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/5 "2023-01-15T19:52:03Z")

</div>

Is it a relation that allows one or many users to be selected?  
A screenshot would allow us to confirm.  
What is the name of the relation field?

---

<div class="post-metadata">

**Author:** ![gomocoop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/gomocoop/32/6349_2.png) [@gomocoop](https://community.fibery.io/u/gomocoop)\
**Post date:** [January 16, 2023, 2:27am UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/6 "2023-01-16T02:27:02Z")

</div>

Yes, the relation does allow many users…

The name of the relation field is Responsaveis (portuguese for responsibles):

 ![Captura de Tela 2023-01-15 às 23.25.15](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/0fbc1711811722a913a023c5e4a05a9a3879b03e.png)

And this is the rule:

 ![Captura de Tela 2023-01-15 às 23.24.55](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a58d24ae072d614bdea85d10854ac03302ed905e.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![tpaktop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/tpaktop/32/6394_2.png) [@tpaktop](https://community.fibery.io/u/tpaktop)\
**Post date:** [January 16, 2023, 6:37am UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/7 "2023-01-16T06:37:57Z")

</div>

You might need to create a separate formula field first which combines multiple names together. Something like this:

 ![Screenshot 2023-01-16 at 2.37.15 pm](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/b/ba1f78a895d59b7fa6355a9a60a959578ba5fdc1.png)

Then use that field in your message.

---

<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:** [January 16, 2023, 9:36am UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/8 "2023-01-16T09:36:51Z")

</div>

Try this  
`{= Responsaveis:Name =}`  
you should get a comma separated list of names

---

<div class="post-metadata">

**Author:** ![gomocoop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/gomocoop/32/6349_2.png) [@gomocoop](https://community.fibery.io/u/gomocoop)\
**Post date:** [January 16, 2023, 2:59pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/9 "2023-01-16T14:59:02Z")

</div>

This one didn’t worked. Thanks!  
I’ve first tried @ChrisG’s solution and it worked! =)

---

<div class="post-metadata">

**Author:** ![gomocoop](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/gomocoop/32/6349_2.png) [@gomocoop](https://community.fibery.io/u/gomocoop)\
**Post date:** [January 16, 2023, 2:59pm UTC](https://community.fibery.io/t/how-to-refere-to-a-user-from-a-field-probably-basic/3793/10 "2023-01-16T14:59:18Z")

</div>

It worked! Ihuuu thanks! =)
