You are viewing limited content. For full access, please sign in.

Question

Question

Anyone have a WF that receives information from webhooks like from shopify?

asked on January 21, 2019

I'm not a programmer but I have a client that uses Shopify for ordering. They have a webhook feature so I imagine its possible to have workflow be kicked off via webhooks. Does anyone have experience with this type of workflow? 

My first thought was to use Import Agent email monitoring and haveShopifyy just send order confirmations to a service email but my client thinks Webhooks would be better. Any input would be great! Thanks!

0 0

Replies

replied on January 21, 2019

Workflow Web Services can be used to initiate a Workflow, but I don't think it is as simple as calling a URL (I believe it requires using the Workflow SDK libraries in the calling application).

One option is to create a simple web application that acts as an intermediary (i.e., webhook from Shopify to the custom app URL, which in turn starts the workflow using the WF SDK).

See the posts below for similar questions

https://answers.laserfiche.com/questions/58346/Using-Webhooks

https://answers.laserfiche.com/questions/124481/Can-you-start-a-Workflow-BP-using-a-URL

https://answers.laserfiche.com/questions/88229/Using-web-application-to-launch-a-workflow

 

1 0
replied on January 22, 2019

Thanks Jason, 

I had read a ton of post about webhooks and I think you have confirmed what I was thinking. In the most simplistic terms, to accomplish starting a WF from a webhook service, you would need a custom app that receives the data and then push said data into WF and start the WF. 

As for Shopify, it can also be configured to send emails when an order is placed, so I thought it would be easier to have the site send an email to an address monitored by Import Agent which then would store a document in the repo and kick off the WF. Since the format of the email would be structured, it would be easy to extract with full-page OCR and Pattern matching. This client thinks Webhooks are less prone to errors than emails which I'm not sure if that is true. Thanks for the help. 

0 0
replied on January 22, 2019

You definitely would not want to expose the workflow API and would need an intermediate service.

My question would be, how fast does it need to happen? Unless it has to hit absolutely instantly, I would try hitting their orders endpoints on a schedule just to check for new orders, IE once every 15 minutes during business hours. This way you do not have to expose any new services.

 

https://help.shopify.com/en/api/reference/orders/order#index

1 0
replied on January 22, 2019

Great idea John. This was another thought I had. We could use WF on a schedule to call to Shopify for new orders. Then retrieve information and start the process. 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.