# Any way using Java SDK to export device fields?

**URL:** <https://forum.inductiveautomation.com/t/any-way-using-java-sdk-to-export-device-fields/82304>\
**Category:** Ignition\
**Tags:** sdk\
**Created:** [November 23, 2023, 3:28pm UTC](https://forum.inductiveautomation.com/t/any-way-using-java-sdk-to-export-device-fields/82304 "2023-11-23T15:28:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelo\_Tebano](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Angelo\_Tebano](https://forum.inductiveautomation.com/u/Angelo_Tebano)\
**Post date:** [November 23, 2023, 3:28pm UTC](https://forum.inductiveautomation.com/t/any-way-using-java-sdk-to-export-device-fields/82304/1 "2023-11-23T15:28:54Z")

</div>

Hi, I'm new to Ignition and its module development using Java SDK. I'm looking for a way to collect/query all device details including device field/type. My purpoose is to do automatically some stuff like adding tags to tag providers, activate historical on them, etc.without open the designer.

I tried doing this kind of query in a service I run in my Java module

```auto
List<DeviceSettingsRecord> deviceSettingsRecords = context.getPersistenceInterface()
                    .query(new SQuery<>(DeviceSettingsRecord.META, SQueryMode.SREAD_ONLY));

```

but data it returns seems to be not useful. Not even with this approach I was able to get data I need

```auto
List<OpcConnection> conn = context.getOpcManager().getConnections();

```

Any suggest?

Thanks  
A

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 23, 2023, 3:46pm UTC](https://forum.inductiveautomation.com/t/any-way-using-java-sdk-to-export-device-fields/82304/2 "2023-11-23T15:46:15Z")

</div>

Each device type maintains its own persistent data with its own table in the internal configuration database. The instance of `PersistentRecord` that implements this is private to the driver module--it isn't exposed anywhere in the gateway. The only thing that is exposed is the content of the internal DB tables themselves.

If you inspect the settings stored in these tables, you can probably figure out how common settings are stored. But there is no generic way to do this. And there won't be. In v8.1, at least.

(Ignition v8.3 is supposed to make everyone expose things as APIs.... That might solve this for you.)
