I have app that stores test records and part of that allows the user to take images and store them in the record as attachments. (datacard)
It works fine for a new record with no prior attachments , but i cant get it to work in a record edit existing record case
Clicking Take Picture multiple times stores images to the galleryCollection
If(
CountRows(galleryCollection)<10,
Set(
varName,
GUID()
);
Collect(
galleryCollection,
{
DisplayName: varName & ".jpg",
Id: varName & ".jpg",
Value: Camera1.Stream
}
)
the new record is then updated using Update for the datacard
issue - editing an existing record
where have attachments already how can i add the galleryCollection contents as extra images keeping whats there already?
Ai suggested this
ThisItem.Attachments & galleryCollection to merge the old and the new but it wont work as its seems to have issue joining these
ClearCollect(galleryCollection,DataCardValue35.Attachments)
Stay up to date on forum activity by subscribing.
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,075
Most Valuable Professional