Hi ,
I have an Excel Like Editable Grid that is using a PowerBIIntegration.Data as a data source,
Whenever user save the Gallery (this Data will store the record in another list) or
I want to update an Request_ID if it already exists
Here is what my logic looks like right now...
ForAll( 'Electrical-Gallery'.AllItems,
If(
IsBlank(
LookUp(
'BSD CAD Tracker Electrical Mechanical',
Request_ID = TextInput2_2.Text
)
),
Patch( 'BSD CAD Tracker Electrical Mechanical',
Defaults('BSD CAD Tracker Electrical Mechanical'),
{
Request_ID:TextInput2_2.Text,
SAP_Part_Number:TextInput5_2.Text,
Family_Code: ComboBox1.Selected.Family_Code,
IEC_BLOCK: TextInput6_6.Text
}
);
Notify("Data Saved Success",NotificationType.Success),
Patch( 'BSD CAD Tracker Electrical Mechanical',
{
Request_ID:TextInput2_2.Text,
SAP_Part_Number:TextInput5_2.Text,
Family_Code: ComboBox1.Selected.Family_Code,
IEC_BLOCK: TextInput6_6.Text
}
);
Notify("Existing Data Saved Success",NotificationType.Success)
)
)
in this above code New Items saved successfully but Updated already Exists item not working it will create the Duplicates
I've been banging my head for weeks now, I don't know how to fix
Thanks
Ranga