formssharepointpowerappspowerapps-canvas

Powerapps Form does not map correctly fields


I have a sharepoint list with two columns : "utilisateur" and "role". Both are required. I created a form with the mode "New" in powerapps. In this form there are two input : a dropdown and a combobox. Both are inside a DataCard and both DataCard have the property "update" set to .Selected and DataField properties are set to "utilisateur" and "role". Config of my Datacards When I select an "utilisateur", it correctly change the input value (I show it with a Text item) Test with the application running

But when I check my sharepoint list it show an empty item : Sharepoint list with the new item

It should automaticaly map the input value to the item value in the list.


Solution

  • The update properties of my DataCards had to be a little more detailled :

    Role dropdown

    {
        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
        Id: Dropdown2.Selected.ID
    }
    

    Utilisateur combobox

    {
        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
        Claims: "i:0#.f|membership|" & ComboBox1.Selected.Mail;
        DisplayName: ComboBox1.Selected.DisplayName;
        Email: ComboBox1.Selected.Mail
    }