# How can I autolink entities based on a shared relation

**URL:** <https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836>\
**Category:** Get Help\
**Created:** [October 16, 2025, 4:25pm UTC](https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836 "2025-10-16T16:25:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.fibery.io/u/Fabian)\
**Post date:** [October 16, 2025, 4:25pm UTC](https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836/1 "2025-10-16T16:25:35Z")

</div>

![Screenshot 2025-10-16 at 18.20.28](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/09ac4d78863a74aa45fc221eac89e67b8c043e47.png)

Hello,

TestModule has a many-to-one relationship to TestModuleType and TestProject.

TestModuleType and TestProject have a many-to-many relation (couldnt upload another screenshot).

My goal ist to autolink TestModuleType and TestProject if both are linked to the same TestModule.

However I cannot use the autolink feature under “advanced”, only fields are allowed there. How can I accomplish this?

Thanks & Cheers,

Fabian

---

<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 16, 2025, 4:44pm UTC](https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836/2 "2025-10-16T16:44:36Z")

</div>

You can’t autolink based on matching the contents of collection fields.  
Imagine TestProject is linked to TestModules A,B and C, and TestModuleType is linked to TestModules A,B and D.  
Should they be matched?

Autolinking is not designed for matching on the intersection/overlap of two sets

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [October 16, 2025, 6:21pm UTC](https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836/3 "2025-10-16T18:21:35Z")

</div>

Hey Fabian! Welcome to the community :))

It’s technically possible I think, but complicated using this technique:

> [@Auto-linking via a to-many relation \[workaround\]](https://community.fibery.io/t/auto-linking-via-a-to-many-relation-workaround/2701):
>
> Hi, folks! Hope, this workaround would be helpful for someone. If you have any questions or suggestions - feel free, to share them here, in comments hugsProblem There are two Databases you would like to connect via [automatic linking] ([Automatically Link entities | Fibery Help Center](https://help.fibery.io/en/articles/4539762-automatically-link-entities)). However, a simple mapping is not enough since one of the linking rules involves a to-many relation: In this example we are trying to connect Conferences and Segments via their Region and Industry…

And having two “contain” Filter grouped with “or”. This is complex, but if you really need it feel free to reach out.

A less complicated route is using lookups. You can add a lookup field on the TestModuleType database to pull the TestProjects using the TestModule field.

If you need it as a relation field, you can have an automation run triggered when the lookup changes, populate the same values in the relation field.

Not sure if this is exactly what you need, but you can play around some more from here :))

---

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.fibery.io/u/Fabian)\
**Post date:** [October 17, 2025, 7:01am UTC](https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836/4 "2025-10-17T07:01:28Z")

</div>

Hey Chris,

thanks for your response.

In my case they should be matched if at least one entity overlaps. That way I would directly see which TestModuleTypes are used in a TestProject. It would be nice to have, but I there a probably other waays to chieve this.

---

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.fibery.io/u/Fabian)\
**Post date:** [October 17, 2025, 7:04am UTC](https://community.fibery.io/t/how-can-i-autolink-entities-based-on-a-shared-relation/9836/5 "2025-10-17T07:04:51Z")

</div>

Hey Ron,

thanks for the warm welcome and the suggestions.

I’ll try to find a suitable way with the help of your hints.
