Jump to content
Joey P.

Post to WebHook from alfred input

Recommended Posts

Hello, I am trying to a workflow to send some data to a Zapier webhook which will then do some things with it. Here is the details I am trying to gather and the URL that I would like to compile and post to webhook. 

 

Invoice Number

Hours

 

Example Data

- Invoice Number: 399

- Hours: 1.5

 

https://hooks.zapier.com/hooks/catch/2181453/vqew4t/?invoice_number=399&hours=1.5

 

How can I do this? 

Share this post


Link to post

Welcome @Joey P.,

 

Seems like that code is working, which suggests it may be using the real values to interact with your hook, which means you should probably redact that information. For that same reason, I’ve posted the example Workflow to a temporary file host (will be gone in two weeks).


The only thing you need to do is call your URL with curl in a Run Script Action. To separate the arguments, ask for them with a Keyword Input connected to a Split Argument to Variables Utility. Like so.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...