I have a repeating table that adds the data to a collection, this collection then sends the data to a SPO list. One of these fields is a Choice field in SPO. This is my ForAll code
ForAll(
OtherIn,
If(
(A1_Amount >= 1),
(Patch(
'GA-OtherInPage',
Defaults('GA-OtherInPage'),
{
A1_Amountbeforetaxes_Clmn: A1_Amount,
'A1_GST/HSTTotalPaid_Clmn': A1_GSTHST,
'A1_PST/QSTTotalPaid_Clmn': A1_PSTQST,
'A1_Project/Fund_Clmn': A1_ID,
'A1_Project/Fundiption_Clmn': A1_Description,
//A1_AccountCode_Clmn:{Value:A1_AccountCode}
//A1_AccountCode_Clmn: A1_AccountCodeInput.Selected,
A1_Locn_Clmn: A1_Loc,
A1_Dept_Clmn: A1_Deprt,
A1_DeptProg_Clmn: A1_DeprtProgramCode,
FormID: First(
Sort(
'Master List Form',
ID,
Descending
)
).ID
}
))
)
);
the issues is around the
//A1_AccountCode_Clmn:{Value:A1_AccountCode}
//A1_AccountCode_Clmn: A1_AccountCodeInput.Selected,
all other fields get submitted correctly but this one. In SPO the column it set to accept values manually, and in Power Apps its complaining about requiring a record vs text entry. The Text value being the items in the collection. I've tried a few suggestions in from the forms but I think my code and method is a bit different from the solutions people have suggested.
Falling short of converting the SPO column to a text field and have the items pull from somewhere else, i would like to find a way to send this collection data to SPO.
Any help is appreciated.