# Dialog open on custom code

**URL:** https://community.neutrinos.com/t/dialog-open-on-custom-code/785
**Category:** Neutrinos Platform
**Tags:** neutrinos-alpha
**Created:** [May 23, 2025, 7:57am UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785 "2025-05-23T07:57:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![oboikanyego](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/o/278dde/32.png) [@oboikanyego](https://community.neutrinos.com/u/oboikanyego)
#### Post date: [May 23, 2025, 7:57am UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785/1 "2025-05-23T07:57:42Z")

</div>

Hi team,

I am trying to open the dialog on custom code,using this code snippet:  
const pages = await ap.pages.get();  
console.log(pages)  
const newPage = pages.find((el)=\> [el.name](http://el.name/) == ‘Page name’);  
ap.dialog.open({  
page: newPage,  
height:‘50’,  
width: ‘50’,  
header: ‘Title’  
})

But “pages” always brings back an empty array. Even though i have the dialog page created. Any solution around this?

---

<div class="post-metadata">

### Author: ![oboikanyego](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/o/278dde/32.png) [@oboikanyego](https://community.neutrinos.com/u/oboikanyego)
#### Post date: [May 23, 2025, 9:28am UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785/2 "2025-05-23T09:28:16Z")

</div>

@Eldho can please assist with getting support on this ASAP?

---

<div class="post-metadata">

### Author: ![Eldho](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/e/c6cbf5/32.png) [@Eldho](https://community.neutrinos.com/u/Eldho)
#### Post date: [May 23, 2025, 11:24am UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785/3 "2025-05-23T11:24:48Z")

</div>

@vaibhav @Irfan_Ali @gaurav.pandey please help

---

<div class="post-metadata">

### Author: ![Irfan\_Ali](https://community.neutrinos.com/user_avatar/community.neutrinos.com/irfan_ali/32/86_2.png) [@Irfan\_Ali](https://community.neutrinos.com/u/Irfan_Ali)
#### Post date: [May 26, 2025, 6:30am UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785/4 "2025-05-26T06:30:47Z")

</div>

**Hi Oboikanyego,**

There is an issue with `await ap.pages.get()` has already been addressed by our platform team. A new build will be provided to incorporate this fix. In the meantime, please use `ap.pages.getPagesList()` as an alternative.

Let me know if you need any assistance or further information.

---

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [July 17, 2025, 1:18pm UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785/5 "2025-07-17T13:18:29Z")

</div>

Hi @Irfan_Ali,

When using ap.pages.getPagesList() to access pages, we getting pages that are added on the menu only.  
We tried await ap.pages.get() and this gives us an empty array.  
Was the new build provided ??

Thank you in advance

---

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [August 4, 2025, 11:54am UTC](https://community.neutrinos.com/t/dialog-open-on-custom-code/785/6 "2025-08-04T11:54:40Z")

</div>

Hi team,

Any updates on this.  
We are trying to navigate a user.  
When navigating on triggers it only shows Inquiry and Inbox.  
Getting pages using ap.pages.getPagesList() still gives us and empty array globally.

Could anyone please assist us on this.

Thank you.
