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 / Create New Form by Pro...
Power Apps
Unanswered

Create New Form by Product and Create New Form by Product Group

(0) ShareShare
ReportReport
Posted on by 13

I need help trying to figure out how to adjust the buttons connected to my forms. Attached is an example dataset. Please help!

 

The purpose of this form is to provide users a way to save information (Comments, Price, Units, Date) at the product level (Gala Apple, Fuji Apple, Grapes). I would like to create two buttons, "New Record - Product" and "New Record - Group".

 

"New Record - Product" - when selected, will create NewForm(Form1) with a record ID that is the highest Recid + 1 for the product. For example, since the highest Recid for Gala Apple is 5, the new form will prepopulate Recid with 6. How do I accomplish this?

 

"New Record - Group" - when selected, will create NewForm(Form1) with a record ID that is the highest Recid + 1 for the product group. For example, since the highest Recid for Gala Apple is 5 and Fuji Apple is 2, the new form will prepopulate Recid with 6 (using Gala Apple, since it is the highest). How do I accomplish this?

 

I have set global variables SelectedProduct (specified product) and SelectedRecord (specified record number), as well as a collection ProductRecords (all record numbers for specific product). However, I am not able to make any formula that seems to work. Would there be a difference if I used a Set or Collect/ClearCollect formula?

 

Any help will be greatly appreciated!

Categories:
I have the same question (0)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard