We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

HTML type field not saving when Business Rule runs as system user after Wait Rule - Zurich

NoorulHudaN
Tera Contributor

Hi Community,

We have a Business Rule that creates incidents based on incoming alerts from an external monitoring tool. It includes a Wait Rule - when the wait completes, a scheduled workflow runs as the system user and executes a post processing script to populate fields on the incident.

The problem is - the HTML type field on the incident table fails to save when running as system user. String fields work fine.

 
createdTask.setValue('u_description', '<b>Test</b>'); // ❌ blank
createdTask.setValue('description', 'Test');           // ✅ saves fine

What we confirmed:

  • Security debug shows RC = true for incident.u_description/write — so ACLs are not blocking
  • Same code works fine when running as service account (without wait rule)
  • Issue is specific to Zurich — works fine on older versions

    Is there a known platform change in Zurich that affects writing to HTML type fields when running as system user in a background context?
1 ACCEPTED SOLUTION

@NoorulHudaN 

yes it does apply to that user.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@NoorulHudaN 

I believe something changed in Zurich check below links

🔐 ServiceNow Zurich Release: Understanding Scripting Governance 

ServiceNow Zurich changed what “admin can edit anything” means. 

https://youtu.be/5C8y4tdzYHI?si=hr_tqzYISZuClPaX 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar 
Thanks for your response.
Just to confirm - does the Scripting Governance restriction on HTML fields also apply to the system user? Given that system runs with the highest privilege and bypasses ACLs..

@NoorulHudaN 

yes it does apply to that user.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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