(Example) Create a Webhook and Receive Notifications (2024)

This example shows how to create a webhook to send a webhook notification when an event occurs in an NX app.

Background and Setup

Prerequisites

  • AgilePoint NX OnDemand (public cloud), or AgilePoint NX PrivateCloud or AgilePoint NX OnPremises v7.0 Software Update 2 or higher.

Good to Know

  • This example topic uses a simple example for webhook based on this use case:

    Faybey, a fictitious online fashion retailer, uses the Sales Invoice app to create and manage customer invoices. The company has problems with sales invoices that are not correctly executed. The CEO of Faybey wants to monitor the Sales Invoice app to find where the problems occur. The AgilePoint NX administrator creates a webhook to monitor possible problems in the Sales Invoice app. When an error occurs, the webhook sends a notification that the administrator can monitor.

  • This example uses the Sales Invoice app from the AgilePoint NX App Store.

    For more information, refer to How to Get the App

  • This example topic uses the third-party web site https://webhook.site for example purposes. This is a free, open source app you can use to test webhooks and other types of HTTP/HTTPS requests. In a production environment, use an app that is appropriate for your business requirements.

Step 1: Get the Webhook Notification URL

First, get the webhook notification URL from https://webhook.site.

Good to Know

  • This example uses https://webhook.site to get the webhook notification URL that is required to create a webhook in AgilePoint NX. In a production environment, use a webhook notification URL that is associated with your webhook notification system.

How to Start

  1. In a web browser, go to https://webhook.site.

Procedure

  1. On the Webhook.site screen, to copy the webhook notification URL, click Copy.

    (Example) Create a Webhook and Receive Notifications (1)

Step 2: Create a Webhook

Next, create a webhook in AgilePoint NX.

Prerequisites

  • Get the webhook notification URL.

Good to Know

  • This example shows how to create a webhook related to a process instance suspended event. You can also create a webhook related to other runtime events and security events such as role, group, and delegation.

How to Start

  1. In the Manage Center, click System (Example) Create a Webhook and Receive Notifications (2) > Webhooks.

Procedure

  1. On the Webhooks screen, click Create a Webhook.

    (Example) Create a Webhook and Receive Notifications (3)
  2. On the Add Webhook screen, in the Name field, enter Sales Invoice App Errors.

    (Example) Create a Webhook and Receive Notifications (4)
  3. In the Webhook Notification URL field, enter https://webhook.site/a85258a1-9371-4ed6-a43e-91a7a32a07cd.

    This is the example URL from webhook.site in Step 1: Get the Webhook Notification URL. In a production app, use the webhook notification URL for your business requirements.


    (Example) Create a Webhook and Receive Notifications (5)
  4. In the Description field, enter Sends a notification when the Sales Invoice app has an error.

    (Example) Create a Webhook and Receive Notifications (6)
  5. In the Type of Event field, select Workflow/Instance Based.

    (Example) Create a Webhook and Receive Notifications (7)
  6. In the Select Event section, select Process Instance Suspended.

    (Example) Create a Webhook and Receive Notifications (8)
  7. In the Application field, select Sales Invoice from the list.

    (Example) Create a Webhook and Receive Notifications (9)
  8. Click Add Webhook.

Step 3: View a Webhook Notification for an Event

Next, view a webhook notification when a configured event occurs.

Prerequisites

  • In this example, the webhook is configured to send a notification when a process instance is suspended for the Sales Invoice app. For this event to occur, the Sales Invoice app must be configured for the use case, started, and have one or more running process instances. When one of the process instances is suspended — for example, because of an error — it causes the webhook to send a notification.

    In a production environment, a webhook notification is sent when the configured event occurs.

Good to Know

How to Start

  1. In a web browser, go to https://webhook.site.

Procedure

  1. On the Webhook.site screen, in the left pane, click the webhook notification.

    (Example) Create a Webhook and Receive Notifications (10)
  2. Select Format JSON.

    (Example) Create a Webhook and Receive Notifications (11)

    This page shows the webhook notification in JSON format.


    (Example) Create a Webhook and Receive Notifications (12)

Step 4: (Optional) Convert a Webhook Notification to a Human-Readable Format

Next, change a webhook notification from JSON format to user readable format.

Good to Know

  • This example uses http://json2html.varunmalhotra.xyz/ to parse the JSON webhook notification response. This is a freely available open source tool you can use to view the JSON message in a human-readable format.

    In a production environment, use an JSON parsing tool that is appropriate for your business requirements.

How to Start

  1. In one web browser tab, open the webhook notification you received in https://webhook.site.

    For more information, refer to View a Webhook Notification.

  2. In a different web browser tab, go to http://json2html.varunmalhotra.xyz/.

Procedure

  1. In Webhook.site, copy the webhook notification in JSON format.

    (Example) Create a Webhook and Receive Notifications (13)
  2. Go to http://json2html.varunmalhotra.xyz/.
  3. On the Input Valid Jason field, paste the webhook notification in JSON format.

    (Example) Create a Webhook and Receive Notifications (14)
  4. Click Send.

    (Example) Create a Webhook and Receive Notifications (15)

    The results page shows the webhook notification in a tabular format. In this example, the webhook notification shows information such as the cause of the notification (SuspendProcessInstance), the process instance name and ID, and the date and time the event occurred.


    (Example) Create a Webhook and Receive Notifications (16)

How to Get the App

This example is based on the Sales Invoice app from the AgilePoint NX App Store. Use this procedure to get the app.

Prerequisites

  • AgilePoint NX OnDemand (public cloud), or AgilePoint NX PrivateCloud or AgilePoint NX OnPremises v7.0 or higher.

Good to Know

  • This procedure is optional. It is provided so you can test the example with an out-of-the-box app.
  • This is part of the Background and Setup procedures, but many users preferred this step to appear after the example, not before it.

Procedure

  1. Click App Store (Example) Create a Webhook and Receive Notifications (17).

    (Example) Create a Webhook and Receive Notifications (18)
  2. In the CATEGORY section, click Sales.

    (Example) Create a Webhook and Receive Notifications (19)
  3. Click the Sales Invoice app.

    (Example) Create a Webhook and Receive Notifications (20)
  4. On the Sales Invoice screen, click Add.

    (Example) Create a Webhook and Receive Notifications (21)
  5. On the Trust App screen, click Trust it.
  6. Click Return to site.
(Example) Create a Webhook and Receive Notifications (2024)
Top Articles
Credit Unions vs. Banks: What's The Difference?
How to Switch to a New Bank or Credit Union: A Step-by-Step Guide - NerdWallet
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Selly Medaline
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6233

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.