@Anonymous ,
You still did not tell me when you submit the form as this will determine was is the LastSubmit.ID - this is the subject of your post.
Patch(
VerCollection,
ThisItem,
{
Veritem1:ReviInfo.Text,
Veritem2:DateInfo.Text,
Veritem3:BaseOwn.Text,
Veritem4:TrmInfo.Text,
Veritem5:SecInfo.Text,
Veritem6:ChanInfo.Text,
Veritem7:Backup.Text
}
)
The code above will add a new item to the collection each time it is activated. These are then added to your List with this
ForAll(
VerCollection,
Patch(
'VersionInfo-Baseline',
Defaults('VersionInfo-Baseline'),
{
Revision:Veritem1,
Date:Veritem2,
BaselineOwner:Veritem3,
TRMSME:Veritem4,
Sections:Veritem5,
Changes:Veritem6,
BackupOwner:Veritem7,
MasterID2:EditForm1.LastSubmit.ID
}
)
)
and will add all the records that were saved in verCollection. Do you ever clear this collection?
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.