Using Webhook / Deal Property Changed - Deal Stage
@cre
Yes, you can use postman to finish off this flow. Once you receive the code you then have to make the call to the next(and final) endpoint in oauth.
This is part of a normal Oauth2 flow. Passport handles all of this for you. My apologies if it was coming across as to complicated or overly-complicated. Here is an example of a call in postman in addition to the docs I linked above.
presumably, the querystring “code” is the “token” to be used for future calls… IF i was writing an app that needed a token.
but, i’m not making any calls at all. in fact, there are no inbound, external calls at all to the hubspot system. this is literally only to entice hubspot to make an external, outbound call to another system once triggered.
this webhook idea is extremely helpful to us, if we can get it to work, b/c right now we have to poll hubspot frequently to find out when deals are moved between stages to trigger workflows in different areas.
but it is starting to sound like you didn’t really intend on just supplying the pure webhook functionality, but instead meant it to be part of some other app ecosystem? maybe our use case just isn’t supported yet?
all i want is to be able to trigger a webhook every time a deal is moved from one stage to another. maybe there’s a simpler way and i jumped in a bit too deep at the beginning?
Using Webhook / Deal Property Changed - Deal Stage
@cre I do not have a full app. I am just referring to the oauth flow of how to install your hubspot dev app that contains your webhook. I am sorry if you do not find this user friendly. Also the “code” is not the token which you are right you do not need. Your use case is most definitely supported but you will need to write some code to pull it off.
Using Webhook / Deal Property Changed - Deal Stage
@cre When I go through an app install for ex., I write it in NodeJS. I use passport as the middle ware which allows you to create a hubspot strategy in which you can pass along the secret with the ID.
I’ve also posted some example code in a previous post on the forum.
the app is setup to use the following scope: Read from and write to my Contacts
i have authorized the app in both a test/trial portal AND our production portal (low risk since i’m just sending a webhook)
the app still shows zero installs and is not triggering any webhooks.
also, i cannot find out where to “de-authorize” the app or any indication that the app is installed in my instance. is there somewhere i can look to confirm this and/or de-authorize?
Using Webhook / Deal Property Changed - Deal Stage
If it says there are no installs then you must not have set up the oauth connection correctly to install it. When you make the connection you would need to pass the client secret along as well.
Using Webhook / Deal Property Changed - Deal Stage
i have not! this is just supposed to be an internal app for our own use. i cannot find any documentation on how to implement the solution this way. how do i install in a dev app, and then (more importantly) can i install in our own production instance, or once it’s produced does it have to be released to the entire world?
Using Webhook / Deal Property Changed - Deal Stage
@cre You can install in in a test portal or your production portal. No it does not have to be released to the entire world. No one else would have your client ID or secret to be able to install it anyways. Here are some docs on our oauth 2.0 set up. You will need to use oauth to install it and log in to which hubspot portal you wish to install it into.
Using Webhook / Deal Property Changed - Deal Stage
@cre Have you installed the app into the portal you wish to watch? Because dev portals can be used for multiple instances of HubSpot you need to install it into which portal/instance you want to watch.