Attaching a file: Let's say for example we add a file (say Policy.pdf) into the attachment control, while the app is open. Where the file is now? It is now held in memory only — it hasn’t been saved anywhere permanent yet. We can send emails with it because the control exposes the binary content while the app session is alive.
Refreshing the app: If we close / refresh the app: Power Apps reloads the form from the SharePoint list. By this time attachment content was not saved to SP (or any storage), the control has nothing to show. In memory attachment conent has been erased from the app. That’s why it looks like the form “reset,” even though Reset = false. The reset property only controls whether the control clears itself when navigating, not whether unsaved attachments survive a session.
Hecne your alternative solution "SaveData to save to localcache, but this did not work either" didn't get any luck.
What I assume - when you save an instance (record) along with an attachement, the corresponding entry is beings saved in the db (any storage you are maintainint) and then an email is sent to the respective stakehodlers.
If really this is the case, we have the following options:
1. Store the Attachment in the Data Source - Use SubmitForm(FormName) to save the attachment to SharePoint or Dataverse. Next time when the app loads, you can retrieve the file to attachment control. We cana use Media/File column in datavese. Once the file stored in any storave even in collection - we can pre-populate it (OnVisible of the screen for example) on deamnd.
2. Alternatively, store the file in a SharePoint document library and reference its URL in your email send logic (No need to re‑attach every time).
3. Prepopulate the form, set the attachment control's item property to a collection that contains the file reference:
ClearCollect(colAttachment, {Name:"Policy.pdf", Value:Download("https://sharepointsite/Policy.pdf")})
Note: You have to have stored the file somewhere so that you can reload them once app is closed/refereshed.
References:
0. Attachment Control in PowerApps: Limitations
1. Bit of olde article but helpful: SaveData and LoadData Unleashed
2. Refresh function example
I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!