# Button Scripts: How to determine args.currentEntities Type?

**URL:** <https://community.fibery.io/t/button-scripts-how-to-determine-args-currententities-type/2109>\
**Category:** Get Help\
**Created:** [October 6, 2021, 10:35pm UTC](https://community.fibery.io/t/button-scripts-how-to-determine-args-currententities-type/2109 "2021-10-06T22:35:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [October 6, 2021, 10:35pm UTC](https://community.fibery.io/t/button-scripts-how-to-determine-args-currententities-type/2109/1 "2021-10-06T22:35:19Z")

</div>

Is there a way for a button script to determine the Type of the entities in `args.currentEntities`?

---

<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 7, 2021, 7:20am UTC](https://community.fibery.io/t/button-scripts-how-to-determine-args-currententities-type/2109/2 "2021-10-07T07:20:08Z")

</div>

It’s just `.type`

```auto
for (const entity of args.currentEntities) {
    getType = entity.type
}

```

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [October 7, 2021, 2:54pm UTC](https://community.fibery.io/t/button-scripts-how-to-determine-args-currententities-type/2109/3 "2021-10-07T14:54:11Z")

</div>

Ah right - actually, I see `Type` with an uppercase “T” when I dump the entity.

![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a833bd8714be1621ff3bc3e4bdc63ae610a6ac29.png)
