I am trying to save an Attachment to a collection from a form, but I am getting a table in my collection. I am trying to provide a link to the attachment in gallery.
Collect(LineItemsDetail2, {Category: DataCardValue27.Selected.Value, Description: DataCardValue30.Text, StartDate: DataCardValue32.SelectedDate, EndDate: DataCardValue33.SelectedDate, Destination: DataCardValue31.Text, Cost: Value(DataCardValue28.Text), ReportID: DataCardValue35.Text, AttachmentLinks: DataCardValue34.Attachments.Value});
3. Gallery - ThisItem.AttachmentLinks.Value
Solved! Go to Solution.
Hi,
The Attachments is defined as a table.
If you only have one attachment here, then you may take a try with the method below to get the Attachment Link:
First(DataCardValue34.'{Attachments}').value
Or Just take use of the Record from the Item property of the Form control, for example, the Gallery.Selected, then change the formula as below:
First(Gallery1.Selected.'{Attachments}').AbsoluteUri
Let me know if you need any further help on this.
Regards,
Michael
Hi,
The Attachments is defined as a table.
If you only have one attachment here, then you may take a try with the method below to get the Attachment Link:
First(DataCardValue34.'{Attachments}').value
Or Just take use of the Record from the Item property of the Form control, for example, the Gallery.Selected, then change the formula as below:
First(Gallery1.Selected.'{Attachments}').AbsoluteUri
Let me know if you need any further help on this.
Regards,
Michael
Thank you, this worked!
Hi there,
is it also possible with two or more attachments?
Best regards.
User | Count |
---|---|
136 | |
126 | |
73 | |
70 | |
69 |
User | Count |
---|---|
204 | |
201 | |
64 | |
63 | |
52 |