Hi,
I need to copy some of the fields of existing sharepoint items and make some modifications into it ans save it as a new item.
In First screen (Form in View mode), I saved the selected item into the Collection.
In Second Screen (Form in New mode), I set up a default values of the fields i need to copy from collection I created in First screen including attachment field. All fields and attachments is defaulted into the new form and I can add new attachments which also shows all previous attachments. While saving by SubmitForm(NewFormCopy), everything is saved including newly added attachments but the attachments which is copied is not saved.
Any ideas, what could be the the problem?
Formulas I used:
To copy gallery item into collection:
ClearCollect(CopyOfRequest,{Title: MyGallery.Selected.Title,Documents:MyGallery.Selected.'{Attachments}'});
Navigate(NewCopyScreen,ScreenTransition.None)
To add attachment into Default value of Attachment in new form: First(CopyOfRequest).Documents
To save the new item: SubmitForm(NewFormCopy)