Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

Trying to create a webhook to use Google App Scripts

Trying to create a webhook to use Google App Scripts

Wabz
Shopify Partner
3 0 1

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.

Replies 0 (0)