When creating a Shopify data export you can set the custom file name for the exported file to get a predictable URL.
This is especially useful together with scheduled and auto-repeated exports because that will make your exported file always have the name and the URL you expect. You can use that to further automate your process.
How to set Custom File Name in your Shopify export?
When creating a new export in the app. Select data you need to export and scroll down the the “Options” section.
In option “Custom file name” – enter desired file name without the file extension.
If you then set this job to repeat, each export will export to the same file name.
Where to find Shopify exported files predictable URL?
To be able to copy your link and for a link to be usable outside of your store, go into the Matrixify app Settings page. In “Security” settings setting enable the option “Allow downloading your files by external services”.
Then go into your export job from the Home page or All Jobs page.
You can find out the URL of the file by copying the “Download Exported File” buttons link or clicking on the copy link button.
The link you copy will look like this:
The URL by default points to only a specific job which can be seen by the URL parameters at the end of the link.
To make the URL link return the last file with this file name, not a specific job, make sure to remove the URL parameters from the link – everything after
So the link should look like this:
Now opening such a link will always return the newest file in your store with that file name.
Good to know!
- You also can use dynamic placeholders in the export file name, like described in the tutorial Export and import file with dynamic placeholders. But depending on dynamic placeholders, the exported files URL, might no longer be predictable.
- When downloading the file you will be redirected to a temporary location directly to our AWS S3 storage (with HTTP 307 redirect code).
If you have some scripts that cannot follow HTTP redirects, then please ask our Support – we will enable downloads for your shop without redirecting.