Hi,
I am working on an application that creates a PDF. When a user submits a form a PDF is created using Flow. Then in the powerapp users can submit a new attachments and these PDF's should then merge into 1 PDF. I have this working, but because of the way the attachments are set up it is not in the right order.
Above is the first attachment that is created.
But then when I want to add more attachments they always add alphabetically like this. But the first attachment is the cover sheet so it should always be the first document in the merged PDF. Now it is sometimes the second or third, depending on the names of other added attachments. Is there a way that the attachments can be saved based on when they are added? This cover sheet is always added first, so if the users then add new documents it should work.
Thank you in advance for your time
Solved! Go to Solution.
Hi @Bob13 ,
Unfortunately, there is no property on the Attachments that refers to the order or date they are attached, so PowerApps simply sorts them alphabetically.
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.
Visit my blog Practical Power Apps
Hi @Bob13 ,
Unfortunately, there is no property on the Attachments that refers to the order or date they are attached, so PowerApps simply sorts them alphabetically.
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.
Visit my blog Practical Power Apps
Ok, thank you for your reaction
I had a similar situation only I was using the attachments card in a powerapps form to add the files to a SharePoint list from a collection. I got around the issue by adding numerical values at the start of each file name. I got lucky because I was already generating the names with a function so I just added a CountRows(ListName.Attchments)+1 & to the front of my function so the alphabet ordering just put them in the order added.
User | Count |
---|---|
254 | |
106 | |
95 | |
50 | |
39 |