Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Does anyone know how to prevent a record producer from creating a record?

DrewW
Mega Sage

Does anyone know how to prevent a record producer from creating a record?
I have an instance were if the user fills out certain fields it can be determined that they are referring to an existing record and we just want to update that record rather than creating a new one.   I tried current.setAbortAction(true) and that did not work.

 

Anyone have any thoughts on this?

1 ACCEPTED SOLUTION

DrewW
Mega Sage

Ok, so now I feel kind of dumb, apparently current.setAbortAction(true) does work provided you do not have errors else where in your script causing an exception....


View solution in original post

1 REPLY 1

DrewW
Mega Sage

Ok, so now I feel kind of dumb, apparently current.setAbortAction(true) does work provided you do not have errors else where in your script causing an exception....