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 / Save Gallery and Form ...
Power Apps
Answered

Save Gallery and Form PowerApps into SharePoint List

(0) ShareShare
ReportReport
Posted on by 230

Hi everyone, I just want to save my powerapps gallery data to SharePoint List but there is only one column (only title) if I add other column it will be an error.

Can anyone help me

 

I attach my screenshoot bellow

Save Gallery to List SharePoint.JPG

 

My command : ForAll(ExpenseCollection,Patch('Budget Tracking',Defaults('Budget Tracking'), {Title:Title, NominalBiaya:Amount,}));

The problem if I add NominalBiaya:Amount it can't save but if only title:title it will be save to my sharepoint

 

And then I want to save my other column Department (dropdown2 it from my database sharepoint list) into my SharePoint List but it can't save 

 

Categories:
  • Boynog Profile Picture
    84 on at

    Hi @Lucas_Ignatius ,

    Use this code below.

    ForAll(ExpenseCollection,Patch('Budget Tracking',Defaults('Budget Tracking'), {Title:Title.Text, NominalBiaya:Value(Amount.Text)}));

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Lucas_Ignatius Profile Picture
    230 on at

    Lucas_Ignatius_0-1617258098554.png

     

    It still have an error.

  • Boynog Profile Picture
    84 on at

    @Lucas_Ignatius ,

    Use this only.  If you want to save a single row. 

    Patch('Budget Tracking',Defaults('Budget Tracking'),{Title:Title.Text, NominalBiaya:Value(Amount.Text)});

     

    Then can you highlight the error.

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

  • Boynog Profile Picture
    84 on at

    @Lucas_Ignatius ,

     Just make sure no space

    Patch('Budget Tracking',Defaults('Budget Tracking'),{Title:Title.Text,NominalBiaya:Value(Amount.Text)});

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Lucas_Ignatius Profile Picture
    230 on at

    Yap, it works but only saved amount only first row on column nominalbiaya.

    Lucas_Ignatius_0-1617260368473.png

    Lucas_Ignatius_1-1617260415488.png

     

  • Boynog Profile Picture
    84 on at

    @Lucas_Ignatius ,

     

    Patch('Budget Tracking',Defaults('Budget Tracking'),{Tahun:Title.Text,Department:DropdownDepartment.Selected.Value,NominalBiaya:Value(Amount.Text),SisaBudget:SisaBudget.Text});

     

    put the names of your components just follow the format

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Lucas_Ignatius Profile Picture
    230 on at

      

  • Lucas_Ignatius Profile Picture
    230 on at

    ForAll(ExpenseCollection, Patch('Budget Tracking',Defaults('Budget Tracking'),{Title:Title, NominalBiaya:Value(Amount.Text)}));

     

    I just add ForAll, but it still only one row on NominalBiaya if save to sharepoint list, and for Title is correct will be save all column 

  • WarrenBelz Profile Picture
    156,756 Most Valuable Professional on at

    @Lucas_Ignatius ,

    You need to disambiguate Title

    ForAll(
     ExpenseCollection As aExpense, 
     Patch(
     'Budget Tracking',
     Defaults('Budget Tracking'),
     {
     Title:aExpense.Title, 
     NominalBiaya:Value(Amount.Text)
     }
     )
    )

    I am assuming here that Amount.Text is always the same value for each item (and is not in the Expense Collection).

    If not (it is in the Collection), you need

    ForAll(
     ExpenseCollection As aExpense, 
     Patch(
     'Budget Tracking',
     Defaults('Budget Tracking'),
     {
     Title:aExpense.Title, 
     NominalBiaya:aExpense.Amount
     }
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Lucas_Ignatius Profile Picture
    230 on at

    ForAll(Gallery2.AllItems, Patch('Budget Tracking',Defaults('Budget Tracking'),{Title:Expense.Text, NominalBiaya:Value(Amount.Text)}));

     

    I just using that script and it works, but I've question on NominalBiaya:Value(Amount.Text),  I want to change to be  NominalBiaya:aExpense.Amount. It can't why this happen? and how to can be using that? 

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard