# Barcode scan not returning type when set to 'Any'?

**URL:** <https://forum.inductiveautomation.com/t/barcode-scan-not-returning-type-when-set-to-any/41941>\
**Category:** Ignition\
**Created:** [January 1, 2021, 9:37am UTC](https://forum.inductiveautomation.com/t/barcode-scan-not-returning-type-when-set-to-any/41941 "2021-01-01T09:37:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 1, 2021, 9:37am UTC](https://forum.inductiveautomation.com/t/barcode-scan-not-returning-type-when-set-to-any/41941/1 "2021-01-01T09:37:29Z")

</div>

Happy new year all

I’m trying to access the barcode type from a barcode scan using the Scan Barcode action, especially if the type is set to “Any”. I’m guessing that the app must identify the barcode type to scan correctly.

The config.type attribute does not seem to be returned and I wonder if there is any way to get this info. Eventually, I’d like to store this with the data so that I can use the Barcode display component to replicate the scanned item

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 4, 2021, 6:16pm UTC](https://forum.inductiveautomation.com/t/barcode-scan-not-returning-type-when-set-to-any/41941/2 "2021-01-04T18:16:54Z")

</div>

@mrojas might know - it does seem plausible that the type isn’t sent from the native app, but that also seems like something we could easily fix.

---

<div class="post-metadata">

**Author:** ![mrojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrojas/32/6394_2.png) [@mrojas](https://forum.inductiveautomation.com/u/mrojas)\
**Post date:** [January 8, 2021, 4:38pm UTC](https://forum.inductiveautomation.com/t/barcode-scan-not-returning-type-when-set-to-any/41941/3 "2021-01-08T16:38:15Z")

</div>

Currently, we don’t send the scanned barcode type from the device back to the session, only the scanned data, so there’s no way to access the barcode type. I’ll create a ticket to include the barcode type in the session event.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 8, 2021, 5:29pm UTC](https://forum.inductiveautomation.com/t/barcode-scan-not-returning-type-when-set-to-any/41941/4 "2021-01-08T17:29:05Z")

</div>

Super just what I need. Thanks
