Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Unanswered

Feature Request: Pass a collection of strings to custom function

(0) ShareShare
ReportReport
Posted on by

Whenever you try to pass a collection of strings to a function, it just passes an empty table.

 

If you try to define the parameter as `Table("Text")`, it gives you an error: 

```
cannot use non-record value in this context power apps custom function
```

I've tried defining the parameter `Table({Value: "text"})`, and then pass in the collection of strings:


```

functions.myFunction(["one", "two", "three"])
```

 

and this seems to work, but the values for the table are all empty. For instance, if the function is defined as 

```
Concat(Params, Value, " and ")
```

 

the output would be:

 ```
 and  and  and
```

It would be really useful to be able to pass in actual strings instead of having to rely on a pointless record. This would save a lot of time and produce much cleaner code and be a step towards more composable functions for arrays.

 

Thank you 

Categories:
  • JorisdG Profile Picture
    on at
    Re: Feature Request: Pass a collection of strings to custom function

    Using Table({Value: "text"}) and passing functions.myFunction(["one", "two", "three"]) and the function doing a Concat(Params, Value, " and ") works for me and gives "one and two and three". I tried both calling it within the component and from outside the component and both work as expected.

     

    It appears that from your output it's getting the right number of records in the table at least. Not sure why the Value column would be empty though. What version are you running on?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics