logo

NJP

REST Integration using Flow Designer (Integration hub) Part 1 - HR Case Creation (step by step)

Import · May 29, 2023 · article

At K23, ServiceNow demo multiple product using REST integration by using Flow Designer (Integration hub) to automate their fulfillment process like:

  • Order the coffee through the Barista Coffee app .
  • Order the cocktail drink to auto fulfill your cocktail.

I would like to create two blogs to show how Flow Designer HR integration can make automated business transaction for HR case

  • Part 1 - REST Integration using Flow Designer Part 1 - HR Case Creation
  • Part 2 - REST Integration using Flow Designer Part 2 - Update HR Case (update HR case created in Part 1)

This blog will only focus on Part 1 in more detail steps. I will have part 2 posted in my coming blog.

Use Case:

When a user creates an HR case in the source system, the same HR case shall be created in the target system through Rest integration.

Activate Integration Hub plugins

Activates the ServiceNow IntegrationHub Starter Pack Installer plugin (com.glide.hub.integrations) on Personal Developer (Source instance).

Create the script REST API in the target system

Please create the scripted Rest API in your target PDI

JohnZhang10-1685291467290.png

Create the Flow Designer Action to define HR integration

In your target PDI, open Flow Designer to create new Action blow:

Step 1 -create the action record

JohnZhang12-1685291834536.png

Step 2- configure your action record

  • Define all inputs in the action record

JohnZhang14-1685292073492.png

  • Define REST Integration connection access

Click + in 1 first to open "REST IntegrationHub Credentials" window and clicking Basic AUTH Credentials (2)

JohnZhang10-1685292470689.png

Defined basic access blow

JohnZhang11-1685292744985.png

Create the flow to configure pre defined the HR integration action

  • Define the request details

JohnZhang12-1685293192625.png

JohnZhang13-1685293263403.png

Test your integration Action by creating new HR case

JohnZhang10-1685293460820.png

Create Flow to configure your action

JohnZhang11-1685293615429.png

JohnZhang12-1685293748721.pngJohnZhang13-1685293861674.png

Please test your flow to ensure no errors.

Create new HR case in your source PDI

JohnZhang10-1685294030176.png

Verify new HR case created by Rest integration on the target system

JohnZhang1_1-1685294103386.png

I hope my blog is useful to you. Please mark this blog useful to encourage me to create another blog: part 2 - Update HR case using REST integration in Flow Designer soon.

View original source

https://www.servicenow.com/community/hrsd-blog/rest-integration-using-flow-designer-integration-hub-part-1-hr/ba-p/2569782