web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Feature Request: Pass ...
Power Apps
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:
I have the same question (0)
  • JorisdG Profile Picture
    Microsoft Employee on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard