Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Names and email id is not stored in Sharepoint

(0) ShareShare
ReportReport
Posted on by 6
Hi All,
 
I have create a data type of name and email field as single line of text, and connected to office 365 , But when data is inputed in combox box.
It is not saved in sharepoint. Can you please suggest what need to update so based on search on powerapps it will stored in sharepoint
 
Regards,
Sriku
 
 
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Names and email id is not stored in Sharepoint
    Hi srikant,
     
    I have added a Combobox in my app with the following formula in the Items (assuming you have something similar) - 
    Combobox Items:
    Office365Users.SearchUser({searchTerm:ComboBox1.SearchText})
    In the fields, I have selected DisplayName and Mail
    I then added a button on the screen to save the values in the email and name fields (both single line of text).
    Patch formula on the button:
    Patch(
        SPList,
        Defaults(SPList),
        {
            Email: ComboBox1.Selected.Mail,
            Name: ComboBox1.Selected.DisplayName
        }
    )
    If you are using a form to save the details in SharePoint, use the following on the update property of the form datacards.
    //For Email
    ComboBox1.Selected.Mail
    
    // For Name
    ComboBox1.Selected.DisplayName
    If you are going to patch multiple selections in your Combobox, use the following on your button:
    ForAll(Combobox1.SelectedItems As Item, 
    Patch(
        SPList,
        Defaults(SPList),
        {
            Email: Item.Selected.Mail,
            Name: Item.Selected.DisplayName
        }
    ))
     
    Hope this helps. 
     
    LessCodePaths - really like your response and the explanation. :) I think you will need to replace Email and Name with Mail and DisplayName cause I think Combobox is using Office365Users for Items. 
     
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • Suggested answer
    LessCodePaths Profile Picture
    100 on at
    Names and email id is not stored in Sharepoint
    Have you save them to the datasource?
    Using Patch() or SubmitForm() functions?
     
    Let's imagine, 
    • You have a ComboBox named ComboBoxField that contains the records with Email and Name.
    • Your SharePoint list is named YourSharePointList.
    • The columns in the SharePoint list are also named Email and Name.
    Here's the Patch formula to save new item:
    Patch(
        YourSharePointList,
        Defaults(YourSharePointList),
        {
            Email: ComboBoxField.Selected.Email,
            Name: ComboBoxField.Selected.Name
        }
    )

    Explanation

    • YourSharePointList: Name of your SharePoint list.
    • Defaults(YourSharePointList): This creates a new item in the list.
    • ComboBoxField.Selected.Email and ComboBoxField.Selected.Name: These fetch the Email and Name values from the selected item in the ComboBox.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard