# How to transfer the selected device data of "list\_devices" view to "login\_credentials" view?

**URL:** <https://community.homey.app/t/how-to-transfer-the-selected-device-data-of-list-devices-view-to-login-credentials-view/28087>\
**Category:** Questions & Help\
**Tags:** app\
**Created:** [April 8, 2020, 7:54am UTC](https://community.homey.app/t/how-to-transfer-the-selected-device-data-of-list-devices-view-to-login-credentials-view/28087 "2020-04-08T07:54:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WT\_hh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wt_hh/32/20510_2.png) [@WT\_hh](https://community.homey.app/u/WT_hh)\
**Post date:** [April 8, 2020, 7:54am UTC](https://community.homey.app/t/how-to-transfer-the-selected-device-data-of-list-devices-view-to-login-credentials-view/28087/1 "2020-04-08T07:54:03Z")

</div>

This is my pair json:

```json
"pair": [
        {
            "id": "list_devices",
            "template": "list_devices",
            "options": {
                "singular": true
            },
            "navigation": {
                "next": "login_credentials"
            }
        },
        {
            "id": "login_credentials",
            "template": "login_credentials"
        }
    ],

```

I want to show the list first, select a device, then log in, and add the device only after the login is successful, but in “login\_credentials”, I don’t know how to get the selected data
