# Turn many entities into text

**URL:** <https://community.fibery.io/t/turn-many-entities-into-text/4807>\
**Category:** Get Help\
**Created:** [July 18, 2023, 5:51am UTC](https://community.fibery.io/t/turn-many-entities-into-text/4807 "2023-07-18T05:51:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 18, 2023, 5:51am UTC](https://community.fibery.io/t/turn-many-entities-into-text/4807/1 "2023-07-18T05:51:00Z")

</div>

Is there a way to search within many linked entities. With a one-one relation I can use [entity].name in an automation. With a many-one relation it will only possible when I define the specific entity in the many-one. For example [entity].Sort().First().name, but I want to search within all linked entities.

Context in my case.

- When an order _(orderregel)_ comes in, I want to link a template automatically to create tasks automatically.
- I want to be able to link more than one product to a template.
- When the product in the order matches one of the products in the template database, it needs to get linked in order to trigger a second automation to create tasks.

I uses to use this formula. Where ‘Template - los product’ has a one - one relation. But since I want to update my relation (in the template database) from one - one to many - one I need to modify my solution. But changing product.name into products.name is not possible.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/f/f21d1cf51fd52496abd97e2d61c5d1b056c363fd.png)

Anyone who can help me?

---

<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:** [July 18, 2023, 6:18am UTC](https://community.fibery.io/t/turn-many-entities-into-text/4807/2 "2023-07-18T06:18:10Z")

</div>

`FieldName.join(Name, ", ")`  
will produce a comma-separated list of the names of all entities linked in a collection field.

---

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 18, 2023, 6:41am UTC](https://community.fibery.io/t/turn-many-entities-into-text/4807/3 "2023-07-18T06:41:18Z")

</div>

Hi @Chr1sG

Tried to modify the solution but I think there is still a tiny hick-up

1. Created a products list in the database.  

2. Updated my automation.  

3. But no template gets linked.

Can you see what I’m doing wrong here?

---

<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:** [July 18, 2023, 7:00am UTC](https://community.fibery.io/t/turn-many-entities-into-text/4807/4 "2023-07-18T07:00:46Z")

</div>

Assuming Products list is the list of names to search in, I think you’ve got the arguments for the Find function the wrong way around.

---

<div class="post-metadata">

**Author:** ![Marloes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/marloes/32/5926_2.png) [@Marloes](https://community.fibery.io/u/Marloes)\
**Post date:** [July 18, 2023, 7:05am UTC](https://community.fibery.io/t/turn-many-entities-into-text/4807/5 "2023-07-18T07:05:08Z")

</div>

Yes! That was the problem. Previous the other way around was no problem, but now it was.

Thank you so much!
