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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard