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 / Having data from dropd...
Power Apps
Unanswered

Having data from dropdown go into the same record as data from form control

(0) ShareShare
ReportReport
Posted on by 51

I have a form control that populates my Dataverse table without any issues. However, I also have separate dropdowns that I want to be included in the same record as the data from the form control. I have the following patch function, but this creates a new row every time.

 

Patch(
 'Onboarding Requirements',
 Defaults('Onboarding Requirements'), 
 {
 'Std Dept No.': LookUp(
 Divisions,
 Location = Dropdown1_1.Selected.Value && 'Company Name' = Dropdown_company.Selected.Value && 'Division Name' = Dropdown1.Selected.Value,
 'Division No.'
 )
 }
)

 

I'm hoping to simplify the process by having just one button that both submits the form and runs the patch function without creating a new row every time. Does anyone have any ideas on how to achieve this?

Categories:
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @ChattyLinkin , Defaults function will always create new record. Instead you should use LookUp function to look up the record in the source and patch the value.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.

    Thanks,
    ANB

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @ChattyLinkin 

     

    If the result of Defaults is used, a record is created.

     

    SpongYe_0-1696018861738.png

     

     

    Use ThisItem function:

     

     

    Patch(
     'Onboarding Requirements',
     ThisItem, 
     {
     'Std Dept No.': LookUp(
     Divisions,
     Location = Dropdown1_1.Selected.Value && 'Company Name' = Dropdown_company.Selected.Value && 'Division Name' = Dropdown1.Selected.Value,
     'Division No.'
     )
     }
    )

     

     

    Use a lookup function:

     

    Patch(
     'Onboarding Requirements',
     LookUp('Onboarding Requirements', ID = UnqiueField), 
     {
     'Std Dept No.': LookUp(
     Divisions,
     Location = Dropdown1_1.Selected.Value && 'Company Name' = Dropdown_company.Selected.Value && 'Division Name' = Dropdown1.Selected.Value,
     'Division No.'
     )
     }
    )

     

     

     

      


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • ChattyLinkin Profile Picture
    51 on at

    I am a little confused. Do I need to create a unique ID for each record using this? 

     

    LookUp('Onboarding Requirements', ID = UnqiueField), 
  • ChattyLinkin Profile Picture
    51 on at

    Update: 

     

    I tried creating a column with the name Unique ID. I know that's not going to make it unique every time. Just wanted to test. Any idea why the original plan of having the std dept no. update the current record instead of creating a new one didn't work? 

     

     

     

    Patch(
     'Onboarding Requirements',
     LookUp('Onboarding Requirements', 'Unique ID' = "12345"), 
     {
     'Std Dept No.': LookUp(
     Divisions,
     Location = Dropdown1_1.Selected.Value && 'Company Name' = Dropdown_company.Selected.Value && 'Division Name' = Dropdown1.Selected.Value,
     'Division No.'
     )
     }
    );
    
    SubmitForm(Form1);

     

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard