I am using a collection to create new records. In the new record I hvae a look up which she be set to the record used to create the collection in the first place. My idea was something like this:
ClearCollect(
collTemp,
AddColumns(
'SourceTable',
"lookup",<sourcetable>
)
);
ForAll(
collTemp,
Patch(
TargetTable,
Defaults('TargetTable'),
{
:
'Source Table':collTemp[@lookup]
:
}
)
);
Is there any way this might work? or maybe there is a better way to do it?
Thanks in advance
Mark