- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 03:21 AM
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?
Solved! Go to Solution.
- Labels:
-
Incident Management
-
Service Desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 04:21 AM
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
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 03:58 AM
Hi Rafal,
Could you share any documentation for creating an HTML form in the service portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 04:18 AM
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:
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:
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:
Once this is done, the form will look something like below where you can capture the value user has entered
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:
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
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 04:21 AM
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
Regards,
Shloke