Hi,
I have a Forms form for sending through a request for reimbursement. It includes a required field for a copy of the receipt, and the allowed file types are pdf and image to give staff the option of scanning their receipt or using their phone and taking a photo.
The flow is triggered when the form is submitted, I've used Parse JSON to get the attachment, then it goes for approval. If the request is approved, it will create a file (the attachment) in the Approved folder in a specified document library. If it's declined it will create a file in the Declined folder in the same document library.
I need to attach the document to the Start & Wait for Approval step, the Create File Step (in both approved and not) and in the send an email step that goes back to the staff member.
I would also love for the attachment to appear in Teams for the approval but I understand that's a WIP?
My issue is specifying the file types. If I don't specify a file type in the File Name section of either of the steps listed above, the attachment wont open. I can add .jpeg or .pdf or whatever at the end of the file name and that will allow the attachment to save and attach to emails in that format - great! But it only works if it matches the format that was initially submitted.
I feel like I'm missing something small but important that will allow for the different file types. Screenshots of my flow are below.
Also, can I somehow add a step to remove the initial document from my OneDrive once it's been actioned and added to where it needs to go in the document library? Or rename it in my OneDrive so that it's identifiable and then I can just use the
dynamic content in all my steps rather than specifying a file name? Or ideally both?