Hello there, I'm new to Gadget and still learning. I have a scheduled global action that I'm trying to use for updating a delivery profile in Shopify at the scheduled time. I've tried using "connections.shopify.current" in the action as in the docs (https://docs.gadget.dev/guides/plugins/shopify/frontends#calling-shopify-within-actions), but the connection is always unavailable.
My updateShopifyDeliveryProfile function is within a model, and successfully works when used within models, but not when used with my scheduled global action. I've tried working around this connection issue by using the scheduled global action to update a field (needsUpdateFlag) within a model, which then triggers an update to another flag in the model that contains my updateShopifyDeliveryProfile function, and runs the updateShopifyDeliveryProfile function. But even with that approach, the function still doesn't work due to "Shopify connection not available".
Any idea how I can do this or if it's even possible to use a scheduled global action to do this? I've been working on this for a few days and can't seem to figure it out. Thank you