Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Automatic Comment Updates for Incident Tickets

Hari S1
Tera Contributor

Hi,

 

Whenever a ticket is assigned to the "Database" group, we are automatically adding comments to the incident ticket. Currently, in the activity logs(attached image), comments are posted as the logged-in user. However, we want comments are consistently added as "abul tutor".

 

Can someone help me?

 

 

	current.comments = 'We will check the ticket and keep you updated';
	
	current.autoSysFields(false);
	current.update();

 

 

Comments.PNG

Business rule 1.PNGBusiness rule.PNG

 

 

Thank you.

1 REPLY 1

Kristen Ankeny
Kilo Sage

Putting a specific user as the updated by is not typical in the platform. The best alternative would be to use a method that would trigger that update to be done by the system (so would show "system" instead of a user). Two ways I can think to achieve:

- Use a flow instead of a business rule (when creating the flow you can set it to run as system user)

- Trigger an event that then triggers a script action