Loading...

Webhooks in Momentus Enterprise

Comments

16 comments

  • Hello,

    Two questions:

    1.  Is the API needed to send the error/alert messages back to the UI?

    2.  Can I use a validation webhook to issue an alert message when the existing value of a parent UDF is changed?  And if yes: how?!  Use case:  since changing the value of a parent UDF erases the values from all child UDFs (with no way to undo), I'd like to have an alert pop-up when an existing parent UDF value is changed, warning the user that having done so erased all child UDF values, giving the user a change to re-consider and cancel the change.

    Thank you,

    Zak. 

  • Craig Dudenhoeffer

    Hi Zak,

    Thanks for the questions.

    Using webhooks is not tied to the API module, so the API is not needed when consuming webhooks.

    As far as your use-case with UDFs and giving the user a chance to cancel out of the save process...  We do not currently support raising a question to the user through webhooks.  Currently you can return a value of Success or Error.  Success lets the process continue and Error stops the save process and will return an error message that was provided by the consumer of the webhook.

    That said, I do think this is an idea for Ungerboeck to consider.  I've added an enhancement case to the team's backlog.

    Thanks,
    Craig

  • Thanks, Craig.

    So the error message that's currently supported can only provide a hard stop to the save process until the "error" is resolved, and no way to act more like an alert that prevents the first save attempt but lets a second attempt go thru without having to make any corrections?

    Zak.

  • Craig Dudenhoeffer

    Zak,

    Yes, you are correct.  It is a hard stop.

    Thanks,
    Craig

  • Michele Frau

    is there a repository of commonly used webhooks?   Id like to add one that alerts users that an event has been cancelled - would seem fairly standard.  thx!

  • Maggie U.

    Hi Michele,

    I'm checking with our technical team about a web hook repository but in regards to the event cancellation alert, you could assign a recipient list to an automatic note that gets created when the event is cancelled - https://supportcenter.ungerboeck.com/hc/en-us/articles/213800968.

    That may be easier if the recipients are Ungerboeck users but wouldn't work for non-Ungerboeck users.

    Thanks,
    Maggie

  • Maggie U.

    Hi Michele,

    My technical team got back to me on the repository question:

    Webhooks are just notifiers. Ungerboeck sends a notification to where you tell it to go. However, something must exist at the URL you give it to “catch” the webhook and do something with the information it is sent. There are some services where you can do this without programming, like Microsoft Flow, but they do still require an understanding of how a web request works and need some thought put into the logic. Otherwise, you have to be or have a programmer to write something to catch the request.

    This specific request is a standard use of webhooks but behind the scenes something different needs to happen for each organization (e.g. what mail address, mail server). So we can’t offer a solution in a webhook "library."

    So in short, no, there are no standard webhooks because webhooks on their own don’t do anything.

    Ungerboeck can always offer consulting assistance if you would like to try to use Microsoft Flow or a similar service to catch the request. 

    Thanks!

    Maggie

  • Lee Tickett (Tickett Enterprises Limited)

    Hi Michele, did you see my post over https://supportcenter.ungerboeck.com/hc/en-us/community/posts/360036419933-Advanced-Validation-and-Webhooks

    If we get a few more people on board we will look to build a service with common hooks and some simple mechanism for creating new/custom rules.

    Hopefully this would be beneficial to you.

    Thanks

    L

  • Phil barker

    I have written a receiver API for the Account Updated webhook.

    It fires successfully when I create a new account or update an existing account.

    However when I merge two accounts, the webhook does not fire. I was expecting to see it fire once for the account that is updated (merged into) and once for the account that is deleted (merged from).

    Please can someone explain why the webhook would not fire in this case. Or am I doing something wrong?

    Thank you in advance. 

  • Andrea Bemis

    Hi Phil, the merge process uses a different process than the add/edit account process which is why the webhook doesn’t fire but it’s something we can take under advisement and review and discuss. You might want to post the request of the webhook for merge accounts to the CRM Product Idea forum to see if other users would find this useful or not. It's a great way to get votes on ideas and get them in front of project management.

  • Mark Cosgrove

    It appears that Webhooks do not fire if orders are generated in v19 or iEBMS pages.  We're of course looking at migrating to the cloud for v30, but I was hoping to start switching our processes over to webhooks and the API from our old SQL triggers. The "Membership Order Updated" trigger action for instance works fine when testing and editing orders in v20, but does nothing if our members pay their dues online (MBD).

    Unless there's something wrong with the config of our system.  The AA 496 organization parameter for instance says... 'Y/N' Bundle a Work Order Report and its Attachments as one PDF file, then bundle all of them into one print job and print it to the default printer!

    Seeing as v19/20.94 is no longer supported, I'm sure our only real option is to use v20 instead and setup the equivalent v20 web payment pages for members to pay their annual dues online. Figured mentioning anyway though, in case there's something simple that I'm just missing.

  • Lee Tickett (Tickett Enterprises Limited)

    That's correct Mark, they only fire in v20/v30 and v20/v30 customer facing web applications. Not in v19 or v19 iEBMS.

  • Mark Cosgrove

    Thanks for confirming Lee.  I'm making some progress with the API and will either use SQL triggers to send emails to Power Automate and trigger the process that way, or just run the API query every 5 minutes or so and check for new orders.  Then once we're exclusively using v20/v30 it shouldn't be difficult to adjust the processes to work with the webhooks instead.

  • Phil barker

    We are using the Account Updated webhook in v20.96, but it always passes GenderID as null.

    When I use the Ungerboeck API - GET Accounts - I can see accounts with "Gender": "M" and "GenderID": 1, but when I update the account in USI Back Office, it fires the Account Updated webhook and passes GenderID as null.

  • Maggie U.

    Hi Phil,

    Can you update your SDK using Nuget to reflect the new model? I think you may be using an outdated version which is causing the problem.

    Thanks,

    Maggie

  • Phil barker

    Thanks Maggie. I thought I was using the latest SDK, but clearly I wasn't.

    All good now.

Please sign in to leave a comment.