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 / PowerApp to populate D...
Power Apps
Answered

PowerApp to populate Dataverse Table

(0) ShareShare
ReportReport
Posted on by 13

I'm pretty new to PowerApps and am in the middle of building a new app that will collect Safety Alerts for my company and store all responses submitted in a Dataverse table titled 'Safety Observation Databases'.  In general, a User is submitting either a Safety Notification or a Safety Recognition and they have to select their Name, Site, Service Group, Shift, Cost Center, and Work Center.  

 

LCP0716_0-1717693214216.png

 

In the background I have added an Edit Form with the datasource set as the 'Safety Observation Databases' and am using the column field's Default property to record the entry with something like:  Dropdown_Shift.Selected.Value or if it's a text input field (NotCorrectWhy) where the user is typing in an answer about why something isn't correct then the Default property to record the entry is:  NotCorrectWhy.Text.  Ultimately when someone completes filling out the app they hit the submit button whose On Select property is set to: SubmitForm('Safety Observation Database'), which effectively writes a new row into that Dataverse table. 

 

The issue is when it comes to a Choices type column, it doesn't take the value selected into the form. I tried these two and neither works. Help!?!

  1. A dropdown titled Dropdown_SvcGrp with the Items property set to ["","00FSG","00HPG","00VSG","0RMWG","00EP","00CRP"] and then the Edit Form data card for the Service Group field's Default value set to Dropdown_SvcGrp.Selected.Value.  
  2. A combobox titled ComboBox_SvcGrp with the Items property set to Choices('ServiceGroup (Safety Observation Databases)') and then the Edit Form data card for the Service Group field's Default value set to ComboBox_SvcGrp.Selected.Value.

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @LCP0716 - When you add a DataCard for a Choices field into your EditForm, everything is already set up for you. 

     

    What reason was there to modify the DataCard (and the ComboBox inside the DataCard) in the first place?

  • LCP0716 Profile Picture
    13 on at

    Because the User is selecting their service group from the possible choices. I want whichever value they select to be what is written into that submissions row in the table. There is no data in the table right now at all.  I am a novice so perhaps I just don't know how to do this.

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @LCP0716 - As I understand it, your data source is Dataverse. You have inserted an EditForm control into your app. You have added several fields into the EditForm. One of these fields is a Choices field called "Service Group".

     

    You want to save all completed DataCards back to your Dataverse table, but the selected Choice from the "Service Group" DataCard is not saving.

     

    Is that correct so far?

  • LCP0716 Profile Picture
    13 on at

    Yes that is correct, although to be fair I haven't submitted a form at all yet b/c I was still trying to build out all the other input options that I want the User to interact with first.  The other datacard values change as I test the app and show the input or selected value. Any field that is based off a Choice type column though I cannot get to work. 

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @LCP0716 -  If you simply remove the DataCard for that Choices field, and then insert it back into your EditForm control (without making any modifications), then populate your Form with selections, and then click the Submit Button, the data should save back to your data source.

     

    If there is something else you're trying to do other than that, it is not clear to me yet.

  • Verified answer
    LCP0716 Profile Picture
    13 on at

    I understand what you are saying, but you are missing my intent. The Dataverse table is blank but has designated columns for each record that will be submitted through the Power App.  However, I'm not providing the Edit Form and associated data cards as visible fields, I'm merely providing other text input boxes, dropdowns, and combo boxes for the user to input information. Then each of those inputs is linked to the EditForm controls and for each individual Data Card I am setting the Default property to capture the input, for example: Dropdown1.Selected.Value or InputText.Text.  The choices column of the table was giving me trouble, but I figured out that you can use the formula {Value: "the value"}  in the Default or DefaultSelectedItem property and it captures what the user selects.

     

    So here's an example. First my user decides if the notification they are submitting is a Behavior or a Condition from the radio button labeled "Rad_NotificationType". I want that selected value to be recorded into the table under the Choices type column named "ObsType"

    LCP0716_2-1718826149944.png

     

    Within the EditForm control, for the Datacard of the "ObsType" I unlocked the card and set the DefaultSelectedItems property to {Value: Rad_NotificationType.Selected.Value}

     

    LCP0716_3-1718826247088.png

    LCP0716_4-1718826489229.png

     

    So I solved this myself, hope it helps others!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard