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 / gallery linked with a ...
Power Apps
Answered

gallery linked with a sharepoint database

(0) ShareShare
ReportReport
Posted on by 176

Hello,
can you give me the correct code step to save the modifications of a gallery linked to a sharepoint database.

 

i tried with Patch fonction on each label but i will prefer to save once i have made all the changes with a button.

Patch ('bdd sharepoint';ThisItem;

{
Rue: TextInputRue.Text;
CodePostal: TextInputCodePostal.Text;
Ville: TextInputVille.Text

})

 

example:
if I indicate a street, a postal code, the city
I would like to save the changes by clicking on the save button.

 

Thanks for your help.

 

1.png

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Ben-00-38 

    On Save Button OnSelect action:

    Patch('Compte client - adresse';
     ForAll(Gallery9_1.AllItems;
     {ID: ID;
     Rue: TextInputRue.Text;
     CodePostal: TextInputCodePostal.Text;
     Ville: TextInputVille.Text
     }
     )
    )

     

    I hope this is helpful for you.

  • Verified answer
    Ben-00-38 Profile Picture
    176 on at

    Hello the recording is working perfectly.
    However if I apply it to dropdowns I run into one problems.

     

    Here the dropdown "site"

     

    DropdownSite

    Items :

     

     

     

     

    Distinct('Compte client - adresse';ID)

     

     

     

     

     

    Patch code of save button :

     

     

     

     

    Site : DropdownSite.SelectedText;

     

     

     

     

    Do not save the value in sharepoint.

    My error code : Site: DropdownSite.SelectedText;

     

     

    save button:

     

     

     

     

    Patch('Compte Client - contact';
     ForAll(Gallery9_2.AllItems;
     {ID: ID;
     Site : DropdownSite.SelectedText;
     Service: DropdownService.SelectedText;
     Nompr_x00e9_nom: TextInputNomPrenom.Text;
     T_x00e9_l_x00e9_phone: TextInputTelFixe.Text;
     Portable: TextInputTelPortable.Text;
     Mail: TextInputEmail.Text
     }
     )
    )

     

     

     

     

     

    1.png

     

    How to do for the problem?

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard