Abort Action on record producer

pramodkumar
Tera Expert

Hi All,

I have a record producer on custom table. Based on a value of variable on record producer form (if value already exists in table), the record producer should be aborted with an error message and should stay on the same form. How can we achieve this? The record producer is on service portal.

 

Thanks!

9 REPLIES 9

@pramodkumar 

Thanks for marking my response as helpful.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@pramodkumar 

Thanks for marking my response as helpful.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@pramodkumar 

Thanks for marking my response as helpful.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@pramodkumar 

Thanks for marking my response as helpful.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Namrata Ghorpad
Mega Sage
Mega Sage

Hello pramodkumar,

In script section of  record producer you can use script. I have a class table and in that class_name field is used. So in record producer I taken one variable with same name as class_name and I checked if entered value for variable is already exist in the tabe or not. Refer below script. I tried this its working for me.find_real_file.pngfind_real_file.png