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 / How to create a compon...
Power Apps
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?
I have the same question (0)
  • gcmfaizan Profile Picture
    1,022 on at

    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

  • tbeimel Profile Picture
    2 on at

    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

    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!

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard