Hello,
I have a need to copy number of records from a child table and with reference to main table (one to many). The records that need to get copied to child table are getting overwritten (update). I need to keep new rows and create a new row based on the original record(s)
(Using default(datasource) gives me: "Dataverse network error when using patch function the specified column is generated by the server and cannot be specified."
below is the code that incorrectly overwrites existing records and the line that is responsible is 'TPS UID': NewCloneRecord.TPS,:
ForAll(
TeamMemebersRecord As Stuff,
Patch(
'TPS Team Members',
// Defaults('TPS Team Members'),
Stuff,
{
ApproverEmail: Stuff.ApproverEmail,
'Member Status': "Active",
Email: Stuff.Email,
'TPS UID': NewCloneRecord.TPS,
'Training Status': "Yes"
}
)
);

Report
All responses (
Answers (