overwrite files in flow

Post Reply
ramses
Newbie
Posts: 4
Joined: Wed Mar 22, 2023 10:06 am

overwrite files in flow

Post by ramses »

I have a flow where i collect JSON-files from an external system, which i use with a JSON pickup to attach to a PDF file as metadata.
The problem is that i often get new JSON-files with updated info and I only want to keep the latest version of that JSON-file.
Because of the unique prefix i can't just overwrite the previous file.
Is there a way to check if a file already exists in a folder within a flow and delete/overwrite the old one?
User avatar
Terkelsen
Advanced member
Posts: 300
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: overwrite files in flow

Post by Terkelsen »

I think you need to elaborate a little on how the flow works. If you are just collecting the JSON files in a folder and then later picking them up using the PDF you could just leave the JSON files in a folder with no outgoing connection (and overwrite) and then use Inject Wildcard to let the PDF pick up the JSON file. Afterwards use JSON pickup to attach the metadata to the PDF.
ramses
Newbie
Posts: 4
Joined: Wed Mar 22, 2023 10:06 am

Re: overwrite files in flow

Post by ramses »

Your solution with a folder without outgoing connections and an Inject job worked.
Thanks
Post Reply