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 / Office 465 writing bac...
Power Apps
Suggested Answer

Office 465 writing back to SharePoint List

(0) ShareShare
ReportReport
Posted on by 190
- We are using the new forms and objects. Not classic
- We are connecting to Office 365 and we use this in a combobox. This works great.
- We then need to write this back to the Sharepoint list but it's not working. I'm trying the patch function based on my searches.
 
 
SharePoint List name = 'Testing'
SharePoint Column Name = AdditionalCC
Datacard Name - AdditionalCC
 
I am so lost in how to get this to work. I assume I put the code in the "Update" property of the value cared. 
 
Help!
Categories:
I have the same question (0)
  • Suggested answer
    Robu1 Profile Picture
    1,459 Super User 2025 Season 2 on at
     
    Thank you for choosing Microsoft Community.
     
    You're on the right track with using the Patch function.
     
    Here's how you can update the SharePoint list with the selected value from your combobox:
     
    Set the Update Property: You are correct that you need to set the Update property of the DataCard. This property should be set to the value selected in your combobox.
     
    Patch Function: Use the Patch function to update the SharePoint list. The Patch function allows you to modify or create records in a data source.
     
    Here’s a step-by-step guide:
    Set the Update Property of the DataCard:
    Go to the DataCard for the AdditionalCC field.
    Set the Update property to the value of the combobox. For example:
    Combobox.Selected.Value

    Use the Patch Function:
    In the OnSelect property of the button (or wherever you want to trigger the update), use the Patch function to update the SharePoint list. Here’s an example:

    Patch(
        'Testing',
        Defaults('Testing'),
        {
            AdditionalCC: Combobox.Selected.Value
        }
    )
     
    This code will create a new item in the 'Testing' list with the value from the combobox.
     
    If you want to update an existing item, you need to specify the item to update. For example:

    Patch(
        'Testing',
        LookUp('Testing', ID = ThisItem.ID),
        {
            AdditionalCC: Combobox.Selected.Value
        }
    )
    This will update the item in the 'Testing' list where the ID matches the current item.
     
    If you need more detailed steps or run into any issues, feel free to ask!

    If this Post helped you, please click  "Does this answer your question" and like this post to help others in the community find the answer too!

    Happy to help.

    Robu 1
  • WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at
    Please post (in Text) the code in the Items of the Combo Box and the Update of the data card. Also is that the Data Card or Combo Box name ? Either way, you will need to rename it as it cannot be the same as the field name.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard