I have an app with several add media buttons that create a collection and then adds that collection to the attachments but none of the images are going to the attachments. Can anybody see what I am doing wrong here?
Add Media button OnSelect =
UpdateContext({varPID: GUID()});
Collect(
colImage,
{
Value: UploadedImage1.Image,
DisplayName: "Sort 1-"&Text(
Now(),
"[$-en]hhmmss"
) & ".jpg",
Id: varPID,
AbsoluteUri: ""
}
)
I got this form WarrenBelz.
The attachments data card has DataField = "{Attachments}" - Default = ThisItem.Attachments - Update = DataCardValue79.Attachments
DataCardValue79 Items = colImage
There are no errors and the form is submitted and will add all items except the attachments. I can't figure out what is wrong.
Thanks
Solved! Go to Solution.
Thanks, I think I got it figured out with the help of WarrenBelz blog. This seems to work as long as you follow his directions exactly. Attaching Camera photos without either a Flow or JSON – Practical Power Apps
If I just add the images with the default attachments card it works. How do I add the images from several AddMedia buttons to the attachments card and have them go through? I though I had this.
Hi @StephenGW ,
It seems the DataCardValue.Default needs to be set for what you are trying to achieve, however it expects a record, rather than a collection so you can only add one attachment.
Probably you're going to have to look at using Patch() or a flow in Power Automate to upload a collection of attachments.
Thanks, I think I got it figured out with the help of WarrenBelz blog. This seems to work as long as you follow his directions exactly. Attaching Camera photos without either a Flow or JSON – Practical Power Apps
Hi @StephenGW ,
Glad to see the issue have been solved.
You could mark the correct reply as a solution to close the case.
Best Regards,
Wearsky
User | Count |
---|---|
254 | |
112 | |
92 | |
48 | |
38 |