I'm not storing them. I duplicated a process Reza Dorrani did on YouTube for creating a PDF and then downloading it directly from within PowerApps. So, I thought rather than clicking one more time on the document name "Commercial Invoice.pdf" from the attachment control I could just simulate that click with the onselect property from the PDF gen button.
This is the Attachment control using the peak at code feature.
- STCIC_Attachments_CTL:
Control: Attachments@2.3.0
Properties:
BorderColor: =
BorderThickness: =0
Color: =RGBA(255, 255, 255, 1)
DisplayMode: =DisplayMode.View
Fill: =RGBA(0, 0, 0, 0)
FocusedBorderThickness: =0
Font: =Font.Lato
Height: =30
HoverFill: =RGBA(0, 0, 0, 0)
ItemErrorFill: =RGBA(218, 22, 68, 1)
ItemHoverFill: =RGBA(0, 0, 0, 0)
Items: =[{Name:"Commercial Invoice.pdf",Value:Substitute(varPDFContent,"""","")}]
MaxAttachments: =1
PressedFill: =RGBA(0, 0, 0, 0)
Size: =8
Tooltip: =
Visible: =If(!IsBlank(varPDFContent),true,false)
Width: =150
X: =907
Y: =208