# Query Information from a Custom Playlist Tab?

**URL:** <https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456>\
**Category:** Pipeline Integrations\
**Created:** [June 1, 2022, 1:47pm UTC](https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456 "2022-06-01T13:47:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophiaberger](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sophiaberger](https://community.shotgridsoftware.com/u/sophiaberger)\
**Post date:** [June 1, 2022, 1:47pm UTC](https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456/1 "2022-06-01T13:47:20Z")

</div>

Hi, I’m trying to build an AMI that pulls information from a custom tab created on a playlist page. The hope is that we can use the fields displayed specifically under the custom tab to pull information from. However, I cannot figure out if this actually possible - when the AMI is set to versions, we can at least get the tab name and the information for the selected version, but we want it to be for a playlist entity. Does anyone happen to know if this can be done? Does it involve querying the page settings somehow? Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![Kemot](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/kemot/32/2710_2.png) [@Kemot](https://community.shotgridsoftware.com/u/Kemot)\
**Post date:** [June 2, 2022, 10:55am UTC](https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456/2 "2022-06-02T10:55:50Z")

</div>

Hi, if your AMI is called for ‘’ Playlist " entity, you will get info about all selected playlists ids, so you can just use sg.find method to get information about additional fields. So just add your custom field code there.

---

<div class="post-metadata">

**Author:** ![sophiaberger](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sophiaberger](https://community.shotgridsoftware.com/u/sophiaberger)\
**Post date:** [June 2, 2022, 1:39pm UTC](https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456/3 "2022-06-02T13:39:34Z")

</div>

Hi,

maybe I was unclear - it’s not a custom field type I’m trying to query, it’s a custom page tab made on the Playlist. So say it’s a tab called “Smoop,” and it displays only a few specific fields that I want to get (the idea is that I don’t know what these fields will be, someone else will be choosing them) - I want to, from the Playlist AMI, grab the “Smoop” tab information, and I am not sure how to go about doing this.

---

<div class="post-metadata">

**Author:** ![Fabian](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/fabian/32/3508_2.png) [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Post date:** [June 5, 2022, 9:21am UTC](https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456/4 "2022-06-05T09:21:56Z")

</div>

Hi @sophiaberger

As far as I know, it is not possible. The AMI only sends information about the entity/enties that you had selected when firing it off. There is no API to query page setups from SG. So in your case I think you need to base the AMI on versions. The user than needs to select the versions on the custom tab, right click and fire the AMI. This is the only way I can think of to get the custom fields that you are after.

Hope that helps 🙂

Cheers,  
Fabian

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [June 29, 2022, 11:21am UTC](https://community.shotgridsoftware.com/t/query-information-from-a-custom-playlist-tab/15456/5 "2022-06-29T11:21:14Z")

</div>

Hello,

yes there is.

The AMI will return a dictionary with a key calls “cols” which are the currently active columns in your view.

Example:

```auto
cols: 
['image', 'sg_status_list', 'entity.Shot.sg_status_list', 'created_at', 'user', 'entity', 'client_code', 'code', 'sg_path_to_frames', 'sg_path_to_movie', 'description']

```
