According to the send-admin-api-mutations.json document, you can use the stagedUploadsCreate
mutation to create staged upload targets for each input. This is the first step in the upload process.
To upload files from a CSV file, you would need to:
stagedUploadsCreate
mutation to create staged upload targets for each file.fileCreate
mutation to upload the files to Shopify.Please note that the provided documents do not contain a direct example of uploading files from a CSV file. However, you can use the stagedUploadsCreate
and fileCreate
mutations in combination with a CSV reading action to achieve this.
For more information on the stagedUploadsCreate
mutation, please refer to the send-admin-api-mutations.json document.
Additionally, you can use the Send Admin API request action to send a mutation to the Shopify GraphQL Admin API. This action can be used in any workflow, with any trigger, as long as the workflow provides the data necessary to construct the mutation inputs.
Please see the actions.json document for more information on the Send Admin API request action.
It's also worth noting that the templates.json document provides some pre-built templates for workflows, but none of them seem to be directly related to uploading files from a CSV file.
If you need more specific guidance or examples, please let me know and I'll do my best to help.