I have an Excel Like Editable Grid that is using a PowerBIIntegration.Data as a data source. I have a save button on a screen, and when I click save (Multiple Items to Update Existing or Create Multiple item)
I want to update an Request_ID if it already exists in SharePoint else Create New item in the SharePoint list. .
Here is what my logic looks like right now...
ForAll(
Filter(
Gallery1.AllItems,
Toggle1.Value = true
),
Patch(
BSD,
{
Request_ID: TextInput1.Text,
Family_Code: ComboBox4.Selected.Family_Code,
SAP_Part_Number: TextInput2.Text,
IEC_BLOCK: TextInput3.Text,
JIC_BLOCK:TextInput4.Text,
IEC_ETAG:ComboBox4.Selected.IEC_ETAG,
JIC_ETAG:ComboBox4.Selected.JIC_ETAG,
Electrical_Status:ComboBox4.Selected.Electrical_Status
}
))
Condition
If(
IsBlank(
LookUp(
'BSD',
Request_ID = TextInput1.Text
)
),
check condition request ID exists