(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
Pronóstico Bitcoin: precio de Bitcoin (BTC/USD) para 2024, 2025-2030 y más | LiteFinance
Five Most Popular U.S. Commemorative Coins – Blanchard and Company
Housing near Juneau, WI - craigslist
The Daily News Leader from Staunton, Virginia
Ross Dress For Less Hiring Near Me
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
Craigslist In South Carolina - Craigslist Near You
The Powers Below Drop Rate
Vocabulario A Level 2 Pp 36 40 Answers Key
Pollen Count Los Altos
Valentina Gonzalez Leaked Videos And Images - EroThots
What’s the Difference Between Cash Flow and Profit?
What is the surrender charge on life insurance?
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis - NFL
Ts Lillydoll
Curtains - Cheap Ready Made Curtains - Deconovo UK
Gemita Alvarez Desnuda
Where to Find Scavs in Customs in Escape from Tarkov
UPS Store #5038, The
Apple Original Films and Skydance Animation’s highly anticipated “Luck” to premiere globally on Apple TV+ on Friday, August 5
Reborn Rich Kissasian
Greenville Sc Greyhound
Engineering Beauties Chapter 1
15 Primewire Alternatives for Viewing Free Streams (2024)
Mineral Wells Skyward
Piedmont Healthstream Sign In
Xxn Abbreviation List 2017 Pdf
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
Cosas Aesthetic Para Decorar Tu Cuarto Para Imprimir
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
HP PARTSURFER - spare part search portal
Solo Player Level 2K23
Guide to Cost-Benefit Analysis of Investment Projects Economic appraisal tool for Cohesion Policy 2014-2020
Rocksteady Steakhouse Menu
Ultra Clear Epoxy Instructions
Makemkv Key April 2023
Peter Vigilante Biography, Net Worth, Age, Height, Family, Girlfriend
Best Restaurants In Blacksburg
Dr. John Mathews Jr., MD – Fairfax, VA | Internal Medicine on Doximity
Best Restaurant In Glendale Az
Craigslist Putnam Valley Ny
Shuaiby Kill Twitter
Mid America Clinical Labs Appointments
Unveiling Gali_gool Leaks: Discoveries And Insights
Strange World Showtimes Near Marcus La Crosse Cinema
tampa bay farm & garden - by owner "horses" - craigslist
Craigslist Pet Phoenix
Mmastreams.com
Who Is Nina Yankovic? Daughter of Musician Weird Al Yankovic
R Detroit Lions
Jesus Calling Oct 6
Escape From Tarkov Supply Plans Therapist Quest Guide
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.