# Get Channel List by Customtype in Web Widget

**URL:** <https://community.sendbird.com/t/get-channel-list-by-customtype-in-web-widget/876>\
**Category:** JavaScript\
**Tags:** chatsdk\
**Created:** [August 31, 2020, 10:33am UTC](https://community.sendbird.com/t/get-channel-list-by-customtype-in-web-widget/876 "2020-08-31T10:33:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vcs\_account](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/vcs_account/32/408_2.png) [@vcs\_account](https://community.sendbird.com/u/vcs_account)\
**Post date:** [August 31, 2020, 10:33am UTC](https://community.sendbird.com/t/get-channel-list-by-customtype-in-web-widget/876/1 "2020-08-31T10:33:12Z")

</div>

Hi SendBird Staff,  
Now i am using web widget in own application. Uikit has been already implemented in application,  
I have same user cases for web widget.

1. CustomType filter use in channel List.
2. Send users list from own database to sendbird server.

how to implement these things in web widget?

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [September 2, 2020, 2:16am UTC](https://community.sendbird.com/t/get-channel-list-by-customtype-in-web-widget/876/2 "2020-09-02T02:16:22Z")

</div>

Hello @vcs_account

By web widget, do you mean [https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget)?

In that case, channel list query is [https://github.com/sendbird/SendBird-JavaScript/blob/master/web-widget/src/js/adapter.js#L61](https://github.com/sendbird/SendBird-JavaScript/blob/master/web-widget/src/js/adapter.js#L61)

For 2 @Alex_Preston

---

<div class="post-metadata">

**Author:** ![Alex\_Preston](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/alex_preston/32/167_2.png) [@Alex\_Preston](https://community.sendbird.com/u/Alex_Preston)\
**Post date:** [September 3, 2020, 6:21pm UTC](https://community.sendbird.com/t/get-channel-list-by-customtype-in-web-widget/876/3 "2020-09-03T18:21:02Z")

</div>

@vcs_account,

For number 2 is it safe to assume this is a migration? Or just initial creation? We actually dont recommend you create users in the SDK, rather you should use the platform API to [create users](https://docs.sendbird.com/platform/user#3_create_a_user).

---

<div class="post-metadata">

**Author:** ![vcs\_account](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/vcs_account/32/408_2.png) [@vcs\_account](https://community.sendbird.com/u/vcs_account)\
**Post date:** [September 3, 2020, 7:23pm UTC](https://community.sendbird.com/t/get-channel-list-by-customtype-in-web-widget/876/4 "2020-09-03T19:23:44Z")

</div>

@Alex_Preston,  
Yes I am not creating users. I am asking about only filtering thing.

1. Filter Channel by Custom type
2. Pass User List own Database to web widget . Because i have users list and i want to just pass to web widget same like React.js UiKit. In UiKit I am using userListQuery. Can we implement same thing in web widget? Do you have sample code?
