I have an SP List (2023 Matrix) with 32 columns, 2 of the columns are set to lookup (Nature of concern/Category & Details of concern/Sub-category) the lookup columns are getting data from another SP List (Category/Sub-category) and set the dropdown on power apps to cascading (ddCat with Items = Distinct('Category/Sub-Category',CatID) & ddCat with Items = Distinct(Filter('Category/Sub-Category',CatID=ddCat.Selected.Value),SubID)).
Apparently, when I setup a save button and setting the Patch function, I am having an error inserting the two columns.
Patch(
'2023 Matrix',
Defaults('2023 Matrix'),
{
'Agent Name': ddAgent1.Selected,
Channel: ddChannel1.Selected,
Title: txt_prm.Text,
'Date Received': dte_rcd.SelectedDate,
'Name of Client': txt_cnt.Text,
'Contact Details': txt_ctc.Text,
'Name of Member': txt_mem.Text,
'SSS Number': txt_ssn.Text,
'Ticket Priority': ddPrio.Selected,
'Ticket Complexity': ddComp.Selected,
'Classification Type': ddClass.Selected,
'Date of Action': dte_act.SelectedDate,
'Initial Action Taken': ddAct.Selected,
'Referral Unit': ddRef.Selected,
'Send as Status': ddStat.Selected,
'Secondary Ticket Reference No.': txt_scd.Text,
'CRMS Reference No. (If any)': txt_crm.Text,
Division: ddDiv.Selected,
Group: ddGroup.Selected,
'Communication Channel': ddCommChan.Selected,
'Date of Update to Hotline 8888 Portal/Client': dte_88.SelectedDate,
'Initial Hotline 8888 Portal Status': dd88Stat.Selected,
'Compliance Date of Referral Unit (SLA*24HR)': dte_comp.SelectedDate,
'Date of Reply to Client': dte_rep.SelectedDate,
'Date of Update to Hotline 8888': dte_upd.SelectedDate,
'Last Tracer': dte_trc.SelectedDate,
'Final Hotline 8888 Portal Status': ddfinal.Selected,
SLA: txt_sla.Text,
Remarks: txt_rmk.Text,
Notes: txt_nte.Text,
Lookup('2023 Matrix', ID = 1), {
'Nature of concern/Category': {
Id: 2,
Value: Lookup('Category/Sub-category, ID = 2, CatID)}
}
)
PS: I did not include the second dropdown with lookup column on SP list in the code since I am unable to proceed with the first.
Am I missing something? I am completely lost on this. Please help as I am new to Power Apps. 🙂
Thanks in advance.