Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

How to create a component with a table output parameter

(0) ShareShare
ReportReport
Posted on by 2

Hi community,

 

I want to create a component that creates a table for me and returns it. I've created a new property with the Type output and the data type table. In this I try to create a new table with the patch function

e.g 

    Patch(
        GetDataByTitle;
        Defaults(GetDataByTitle);
        {Ressourcenname: newRessourcename}
    );;
I get the error message that the name "GetDataByTitle" is not recognized.
 
What do I need to do to create and populate a table?
  • gcmfaizan Profile Picture
    1,022 on at
    Re: How to create a component with a table output parameter

    Hi @tbeimel ,

     

    Please enable Enhanced Component Properties from settings of your Power App.

     

    gcmfaizan_0-1692346728745.png

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Thanks!

  • tbeimel Profile Picture
    2 on at
    Re: How to create a component with a table output parameter

    Hi @gcmfaizan,

    Thanks for your reply. However, I get the following message on Patch():

    Behavioral function in a non-behavioral property. This property can't be used to change values elsewhere in the app.

  • gcmfaizan Profile Picture
    1,022 on at
    Re: How to create a component with a table output parameter

    Hi @tbeimel , 

    Try to pass the Datasource name by using the input property type table.

     

    for example:
    Component Name is: AlfaComponent

    Input Property Name: IP_newRessourcename (Type text)

    Input Property Name is: IP_TableName (Type is table)

    Output Property Name: Op_TablePatch

     

    Create a sample table in IP_TableName don't forget to add your column name "Ressourcenname"

     

    Now write your Patch query like this:

     

     Patch( 
    AlfaComponent.IP_TableName, 
    Defaults(AlfaComponent.IP_TableName), 
    {Ressourcenname: AlfaComponent.IP_newRessourcename} 
    ) 

     

    When you add this component to your screen in IP_TableName property pass your actual table name and in IP_newRessourcename pass the dynamic value. Please make sure Ressourcenname column name must exist in your actual table.

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

     

     

     

     

     

    @tbeimel

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard