Is it a best practice to check the connection in the Record Producer itself?

Joshua Prakash
Tera Expert

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?

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@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.

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

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

Sandeep Rajput
Tera Patron
Tera Patron

@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.