# Using a Returned Variable from Connector Function

**URL:** https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730
**Category:** Support, Troubleshooting, & Help
**Created:** [July 5, 2022, 6:09pm UTC](https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730 "2022-07-05T18:09:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sarah](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sarah](https://community.tulip.co/u/sarah)
#### Post date: [July 5, 2022, 6:09pm UTC](https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730/1 "2022-07-05T18:09:08Z")

</div>

Hola!  
I have written a connector function with an integer output. However when I try to use it in a trigger, the system is not really seeing it as a an integer. I want to be able to use \>=

 ![Screen Shot 2022-07-05 at 12.58.26 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/1/1902e45495ec6a1c1c3225922ebc1d0a5b61be9b.png)

Also, usually when I have connector functions the outputs are listed as a subset of the overall function. In this case I only have the name of the variable returned in the function where I would have expected the folllowing:

number of outstanding radios  
count

Can someone explain why there’s a difference? Do I need to write something differently in my query?  
Gracias!

---

<div class="post-metadata">

### Author: ![sarah](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sarah](https://community.tulip.co/u/sarah)
#### Post date: [July 5, 2022, 6:09pm UTC](https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730/2 "2022-07-05T18:09:43Z")

</div>

![Screen Shot 2022-07-05 at 12.59.05 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/b/b49f33e0de3a069ac26ff7cfeb413f0134eef362.png)

---

<div class="post-metadata">

### Author: ![Grant](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/grant/32/182_2.png) [@Grant](https://community.tulip.co/u/Grant)
#### Post date: [July 5, 2022, 6:15pm UTC](https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730/3 "2022-07-05T18:15:26Z")

</div>

Hey @sarah,

It looks like that variable is a list of objects, which means that you can’t extract the `count` of the variable object without passing in an index. Does that value need to come in as a list?

If you’re working to extract the count from one particular item, you’d probably need to use an embedded table with a linked variable to select the row and use the count from that linked variable.

---

<div class="post-metadata">

### Author: ![sarah](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sarah](https://community.tulip.co/u/sarah)
#### Post date: [July 5, 2022, 6:26pm UTC](https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730/4 "2022-07-05T18:26:39Z")

</div>

Ahh it’s a matter of checking/unchecking this!  
 ![Screen Shot 2022-07-05 at 1.23.18 PM](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/9/9e64e0f56a6066e552d0302ee8e0572246f070d3.png)

Great, thank you!

FYI I was able to uncheck and save the connector function but it didn’t update the returned variable within my app. I had to make a new trigger and new variable and delete the old.

---

<div class="post-metadata">

### Author: ![Grant](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/grant/32/182_2.png) [@Grant](https://community.tulip.co/u/Grant)
#### Post date: [July 5, 2022, 6:29pm UTC](https://community.tulip.co/t/using-a-returned-variable-from-connector-function/5730/5 "2022-07-05T18:29:00Z")

</div>

@Sagar has some updates coming down the line with being able to modify connector’s input and output 🙂

Glad to hear it’s now working!
