- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2024 11:52 PM
I want to create a ticket in ServiceNow and a third party app through integration, for that I created a Record Producer.
I created a "connection check REST MESSAGE" script include with onSubmit Client Script. If the connection is OK. The user can create a record or else he cannot create the record.
Is it a best practice to check the connection in the Record Producer itself?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 02:10 AM
@Joshua Prakash I don't see any issues in having this connection check in the onSubmit script. This is a good way to prevent users from creating the tickets if the third party app is not up and running or there are any connection issues. You can also use onLoad script to check the connection with the third party app and show an error/warning message upfront on the record producer which would alert the user before filling the form.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 02:05 AM
With most integrations the record gets send over after creation. That also would provide server side connection checking instead of client side. There could be a valid reason to do it at the same time, but on the other hand: what if something fails right after the submit?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 02:10 AM
@Joshua Prakash I don't see any issues in having this connection check in the onSubmit script. This is a good way to prevent users from creating the tickets if the third party app is not up and running or there are any connection issues. You can also use onLoad script to check the connection with the third party app and show an error/warning message upfront on the record producer which would alert the user before filling the form.
Hope this helps.