I'm trying to save the data from my collection (colItems123) in my sharepoint list (Patterns_5S) but my function has an error in the item 'Non-compliant sense'.
Error generated: The type of this argument 'Non-compliant sense' does not match the expected type 'Table'. Found type 'Record
can you help me?
Function I'm using:
ForAll(
colItems123,
Patch(
Standards_5S,
Defaults(Standards_5S),
{
Point: colItems123[@Point],
'Non-conforming sense': { Value:
if(
Checkbox1.Value && Checkbox1_1.Value && Checkbox1_4.Value && Checkbox1_2.Value && Checkbox1_3.Value,
"Selection Organization Self-Discipline Cleaning Conservation",
If(Checkbox1.Value, "Selection" & Char(10), "") &
If(Checkbox1_1.Value, "Organization" & Char(10), "") &
If(Checkbox1_4.Value, "Self-Discipline" & Char(10), "") &
If(Checkbox1_2.Value, "Cleanup" & Char(10), "") &
If(Checkbox1_3.Value, "Conservation" & Char(10), "")
)
},
Status: { Value: colItems123[@Status] },
'Non-compliant Desc': colItems123[@Comment],
AuditID: colItems123[@AuditID],
'Audit Data': colItens123[@'Audit Data'],
Area: colItems123[@Area],
Factory: colItens123[@Fabrica],
Item: colItems123[@'Item 1'],
NumberOfImage: colItems123[@NumberOfImage],
Auditor: colItems123[@Auditor],
Collaborator: colItens123[@Collaborator]
}
)
)