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 / saving all gallery ite...
Power Apps
Unanswered

saving all gallery items into dataverse tables

(0) ShareShare
ReportReport
Posted on by 90

Hi I have dataverse table EmployeeDetails with  7 Columns Name,Email,Designation, Department, JoiningDate, YearOfPromotion,Location and i have listed records of EmployeeDetails table in a power app gallery gallery 7,

So I have another dataverse  table called Nominations with 9 Columns Name,Email ,Designation, Department, JoiningDate, YearOfPromotion,Location , Nomination Status and Nominated by .

 

On click of button Nominate i want to save all records of Employee Details table from gallery7 into Nominations with Nomination status column value "Yes" and Nominated by column value with user().email 

Nida_Sayedi_3-1689572185281.png

 

 

 

i wrote patch function but i don't know how to update 2 additional columns  Nomination Status and Nominated by in Nomination table as these columns are not present in EmployeeDetails table 

i wrote below formula on Onselect of nominate button it shows error .

 

ForAll(
Gallery7.AllItems,
Patch(
Nominations,
Defaults(Nominations),
{
Name: ThisRecord.Name,
Email: ThisRecord.'Email Address',
Designation: ThisRecord.Designation,
Department: ThisRecord.Department,
Joiningdate: ThisRecord.'Joining Date',
Location: ThisRecord.Location,
PreviousYoP: ThisRecord.'Previous year of Promotion',
'Nomination Status' : "Yes"

'Nominated By' : User().DisplayName
}
)
);

 

How do I achieve this can where if I click on button I should be able to save all records of EmployeeDetails into Nominations Table with Nomination Status column value to be updated as "Yes" for all records  and NominatedBy column value with logged in username 

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @Nida_Sayedi,

    I understand your situation and your feelings clearly.

    I cannot repeat your issues, could you please offer me more information about you error message?

    I did some test according to your description.

    Following is my formula.

    ForAll(Gallery8.AllItems,Patch(Test07171S,Defaults(Test07171S),{Name:ThisRecord.Name,email:ThisRecord.email,status:"yes",'Nominated By':User().FullName}))

    Below is my Dataverse table.

    vmingkzmsft_3-1689574236636.png

     

    Best Regards,

    Kyrie

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard