This topic was automatically generated from Slack. You can find the original thread here.
Hi Folks
I’m building my first, simple workflow in PD.
Involves data in from Jotform, lodge that data in a data structure (might use it later in other jotforms) and then that data into 1 or more MS Word templates – then a quick existing directory check in dropbox and an upload of the files (with slack sending me a DM once the cycle has run)
Mostly working……… which is awesome
BUT
So, my problem – I decided using the file store option would be simple (self-contained etc etc) and probably less prone to issues (could be wrong about that……) and can not for the life of me get my code to access the file in the file store – dozens of 404’s later, and having checked the URL a dozen times, I’m stumped (could just abandon file store and use dropbox, but like the all in one concept and am sure it’s just me being a noob……………
Here is my code snippet as relevant:
const fileApiUrl = “https://api.pipedream.com/projects/proj_ZpsrroA/files?file=%2FPDall.docx”; // Root-level file
console.log(Step 5: Fetching file from URL: ${fileApiUrl}
);
File reference is correct (click and open) as:
https://api.pipedream.com/projects/proj_ZpsrroA/files?file=%2FPDall.docx
Any help would be much appreciated
Thank you