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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard