Create a form not related to any table in servicenow

Mudit4
Kilo Expert

Hi,

I have a REST API endpoint (not a servicenow API). I want to create a form and submit its data as a POST request to the API. 

One way of doing this, is creating a new table in servicenow with all the required fields. 

However, I dont need to save the data. I just want to POST it to the API. So, is there a way to just have text boxes on a new form without having them linked to a table? 

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Also if say you want to go ahead with a Custom widget and it should not create a record at all post submission then Custom widget is the best approach here.

Please find the links below which will guide you step by step on how you can create a Custom widget:

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/build/service-portal/concept/adv-widget-tutorial.html

https://www.youtube.com/watch?v=HnWrNAlKbZw

https://www.youtube.com/watch?v=3eS2TcjeSM0

So say for example, within your custom widget create a HTML button and on click of that trigger your Rest integration to your 3rd party as you want.

let me know if you are stuck.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

7 REPLIES 7

Hi Rafal,

Could you share any documentation for creating an HTML form in the service portal?

shloke04
Kilo Patron

Hi,

What you can do here is either create a Catalog Item or a Record Producer or a Custom widget where you can define your fields you want.

Catalog item will be easy to configure and develop and then on Submit of the catalog item you can trigger your Integration and post the details of the form to 3rd party.

Please follow the steps below to create a Catalog item:

1) Navigate to the module "Maintain items" as shown below:

find_real_file.png

Now click on New and fill out the mandatory field like you need to fill out the Catalog , Category , Short Description etc as shown below:

find_real_file.png

Now save your catalog item form and scroll down to a Tab named as Variables, where you can define your fields directly as a placeholder where user can enter the info as shown below:

find_real_file.png

Once this is done, the form will look something like below where you can capture the value user has enteredfind_real_file.png

Now on the catalog item there is a field named as Workflow or Flow under Process Engine tab from where you can trigger your Post Integration required to 3rd party as shown below:

find_real_file.png

Note this will still create a Record in Native view in form of Requested item which I believe is good and you can track the request as well on the post transaction you sent.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

shloke04
Kilo Patron

Also if say you want to go ahead with a Custom widget and it should not create a record at all post submission then Custom widget is the best approach here.

Please find the links below which will guide you step by step on how you can create a Custom widget:

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/build/service-portal/concept/adv-widget-tutorial.html

https://www.youtube.com/watch?v=HnWrNAlKbZw

https://www.youtube.com/watch?v=3eS2TcjeSM0

So say for example, within your custom widget create a HTML button and on click of that trigger your Rest integration to your 3rd party as you want.

let me know if you are stuck.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke