# Manually Call Extension Functions

**URL:** <https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487>\
**Category:** Ignition\
**Created:** [January 21, 2021, 5:13pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487 "2021-01-21T17:13:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [January 21, 2021, 5:13pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487/1 "2021-01-21T17:13:30Z")

</div>

How do you call the extension functions on a component manually? Like via a button script calling a power tables extension function or roster management’s filter roster function?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [January 22, 2021, 7:16pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487/2 "2021-01-22T19:16:51Z")

</div>

Are you trying to call code that you have written inside the extension functions, or just trying to refresh the component by invoking the extension function externally?

The extension functions are invoked according to specific events on that component. So for `filterRole` on a user management component, it triggers when a new role is loaded with the management tool.

**EDIT** If you have something you need to trigger manually, I would do it inside a custom method on the component

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [January 22, 2021, 7:44pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487/3 "2021-01-22T19:44:23Z")

</div>

I have a few properties that are bounded to a few drop-downs on the window. Then the filterRole uses the values from the window properties to filter the rosters shown in the component.

I want when the drop-downs change for the component to refresh.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [January 22, 2021, 8:07pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487/4 "2021-01-22T20:07:53Z")

</div>

I see, I wonder if you create custom properties on the component and bind them to your drop-downs if it would update when they changed? Other than that I’m not sure you can force trigger the extension function without something hacky like scripting it to change the user source then back to the original.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [January 22, 2021, 8:09pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487/5 "2021-01-22T20:09:28Z")

</div>

I just found this that you might could try  
[Roster Management Component Needs Refresh Button - Ignition - Inductive Automation Forum](http://forum.inductiveautomation.com/t/roster-management-component-needs-refresh-button/6303)

```auto
event.source.parent.getComponent('Roster Management').refreshAvailableList()

```

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [January 22, 2021, 8:23pm UTC](https://forum.inductiveautomation.com/t/manually-call-extension-functions/42487/6 "2021-01-22T20:23:57Z")

</div>

Yep I found that and that just refreshes the user list when you go to add users to the roster. Doesn’t refresh the roster list.

But you gave me an idea. I found the `refreshAvailableList()` function in the SDK and found `refreshRosterList()`  
That is now refreshing the roster lists.

Thank you
