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