# How to get the list of entities in an relation field?

**URL:** <https://community.fibery.io/t/how-to-get-the-list-of-entities-in-an-relation-field/8218>\
**Category:** Get Help\
**Created:** [February 5, 2025, 9:55am UTC](https://community.fibery.io/t/how-to-get-the-list-of-entities-in-an-relation-field/8218 "2025-02-05T09:55:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [February 5, 2025, 4:21pm UTC](https://community.fibery.io/t/how-to-get-the-list-of-entities-in-an-relation-field/8218/6 "2025-02-05T16:21:14Z")

</div>

If you’re insistent on using a script, then you will have to use `args.currentEntities` to get the A entity, and then use `getEntityById` to explicitly get its related Bs.

> [@Ooker](#):
>
> I try log an entity of A from `args.currentEntities`, but I don’t see the field B. But I can see field A when I log an entity of B. Why is that?

When you get an entity object, by default, only the primitive fields and any to-one relations are included in the fields returned. If you want to get the collection fields (to-many relations) you have to query specifically for them.

---

_[View the full topic](https://community.fibery.io/t/how-to-get-the-list-of-entities-in-an-relation-field/8218)._
