Email notification not being sent due to setWorkflow(false) in an "after" business rule

Divya105
Tera Contributor

 Drupal form integration creates an Incident in servicenow. I have a scenario where I had to use "after" business rule for a requirement to add requested_by (user mentioned on the drupal form copied to Incident as requested_by) to watchlist. For this I had to use current.update but it gives 2 entries in the activity log as there is current.update in an after business rule.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0715782

I followed this article and tried to use setWorkflow and autoSysField but the it is sending the initial notifcation to caller but suppressing/not sending the "assigned to group" notification.

I tried using "before" business rule but it is giving 400 bad request to the drupal form in return instead of 200 OK so we had to use after business rule in this case.

It seems there is no workaround or any other option to achieve this functionality. Hopefully will receive some help from here.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Divya105 

why not set the field on incident via the integration? why to use after business rule?

how is the integration setup done? is it via scripted rest api or table API?

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

That integration is not controlled by us. Also I am just curious why does a before business rule give an error on Drupal end while it still creates an Incident. Can we solve that atleast that can solve everything actually.

 

The error that it gives is:
operation failed/ error during insert of incident.

 

Thanks