Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
So basically I'm creating this app that connects to my website, and part of it requires me to put some details in a google spreadsheet so that the 3d printer can be assigned and such. I'm trying to subscribe to this webhook in the remix app in 3 ways in my shopify.app.toml:
[[webhooks.subscriptions]] topics = [ "orders/create" ] uri = "/webhooks" [[webhooks.subscriptions]] topics = [ "orders/create" ] uri = "<script link>" [[webhooks.subscriptions]] topics = [ "orders/create" ] uri = "<pubsub link>"
so the pubsub link works but i couldn't figure out how to get it to run my script when it receives something, putting the script link calls it, but the scipt doesnt seem to execute it for whatever reason, and the /webhooks i believe should autoamically run to webhooks.jsx and at the very least print a line saying it was triggered but never does, my webhooks.jsx wasn't preinstalled when i did shopify app init so I made it myself.
TL;DR how can i subscribe to a webhook that can link to a google sheet/app script and put order details in it in my shopify app.