1. YongHyun Shin
  2. PowerBuilder
  3. Monday, 30 May 2022 05:36 AM UTC

We want to use Zapier and get data using webhook. 

Anyone can tell us how I can do this please?

mike S Accepted Answer Pending Moderation
  1. Wednesday, 29 May 2024 14:04 PM UTC
  2. PowerBuilder
  3. # 1

PB can't be called directly from a webhook.   I assume you want something in Zapier to trigger a call into your application to 'send data'?  

 

You would need to setup a rest api to receive the data from zapier.  typically, this is done in c# or similar code.  Topwiz has a webapi that is setup to call PB code directly.  You could also do this via a command line PB application that is called from a c# web api.  In both cases you will have to consider volume of calls since starting up PB uses a lot of memory and isn't thread safe.  if the volume of calls is very low it shouldn't be a problem.

in any case, it is not simple.

 

 

 

 

 

 

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 29 May 2024 12:43 PM UTC
  2. PowerBuilder
  3. # 2

I went to the link and from what I can tell, 'webhooks' is just one app sending data to another via web service calls. The sending app should have a configuration window where you enter the URL that the message is sent to.

What Zapier does in this process isn't clear.

Comment
There are no comments made yet.
Steen Jakobsen Accepted Answer Pending Moderation
  1. Wednesday, 29 May 2024 04:37 AM UTC
  2. PowerBuilder
  3. # 3

Hi,

I would really like to know how i can call PB logic via a webhook - i other words register a client to call PB logic (REST ?) when an event happens.

anyone ? :-)

 

Thanks Steen

Comment
  1. mike S
  2. Wednesday, 29 May 2024 14:07 PM UTC
websockets is probably more what you are looking for. the PB application would startup the "conversation" and shut it down. that should be doable using the webbrowser control.







  1. Helpful
  1. mike S
  2. Wednesday, 29 May 2024 14:12 PM UTC
but if you want to call PB to run a process via a rest call, that can be done a couple of ways. One is to use TopwizWeb to call the logic directly. The other is to run your PB application as a command line app and run it from the rest api. Chris P has done the 2nd way for a long time and has done presentations on it. I've done both ways.



The volume of calls can be an issue since it is PB. so if it is very high volume it may make sense to convert. Or run in a cloud like azure that supports automatic spin ups of VMs as volume increases.

  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 31 May 2022 07:05 AM UTC
  2. PowerBuilder
  3. # 4

No knowledge of Zapier, but this might be a good place to start?

https://zapier.com/blog/what-are-webhooks/ 

regards,

miguelL

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.