Hello everyone,
I’m trying to create an automation workflow using Make.com. The goal is to automatically send images from Google Drive to my Shopify account (Files library).
I’ve looked into the fileCreate mutation using GraphQL, but the documentation isn’t very clear, and I haven’t been able to get it working so far.
Any thoughts or suggestions?
1 Like
Hey @Gordias
- you may want to check out the stagedUploadCreate mutation guide we have here in the docs: Manage media for products
I can’t speak for how to integrate it into Make.com, but I believe they have a module that lets you see the files in a Google Drive folder/lets you monitor them (more info here).
I believe there is also a module Make has that lets you download the files.
You could then use fileCreate to upload the downloaded file or set up a staged upload to sequentially set this up. fileCreate might be a bit easier to use since it requires less steps to upload a file, but staged uploads are pretty useful when uploading images in bulk.
If you’re still encountering issues with fileCreate, if you can share any error messages you’re seeing/the GraphQL query you’re using, I can see if we can dig a little deeper into this. We’re not able to fully assist with external APIs/integrations, but happy to take a look if need be!
Hope this helps - let me know if I can clarify anything! 
1 Like
Hello Alan,
Thank you very much for your reply.
I believe my issue has to do with the request content I send to the API. Since the content I send is in JSON format, and GraphQL docs covers other types of formats (e.g. for cURL, Remix, etc.), I couldn’t find the solution.
In this example, this is from cURL:
{
“query”: “mutation themeCreate($source: URL!, $name: String!) { themeCreate(source: $source, name: $name) { theme { name role } userErrors { field message } } }”,
“variables”: {
“source”: “http://www.example.com/dawn.zip”,
“name”: “Dawn”
}
}’
How can I write this in JSON? Thank you very much for your assistance.
Hi @Gordias
Which specific link is unclear, can you share your code or what problems have occurred