Loading...
Loading...
On an [sc_req_item] record, the field closed_by is not being set when system closes it. Steps to Reproduce 1- Create a workflow on sc_req_item table. The workflow should be configured in the following way: Begin -> catalog task -> Timer(2 seconds) -> set values(state = closed complete) -> end 2- Attach the above workflow to the catalog item and order it. 3- Open the associated catalog task and close it by keeping the state as closed complete. 4- Open the RITM and observe the closed_by field is not populating. 5- Remove the Timer activity, this will populate the closed_by field.
Timer activities run as the System user, and "system" does not correspond to any valid user. Hence the "Closed By" field is not populated when used with Timer Task. Ref. Timer workflow activity documentation. As a workaround, you can edit the Business Rule "Set Closure Fields" ( /sys_script.do?sys_id=59f3ba850a00070416e9c50e6215a8d1 ), replacing the script field with the following code: if (current.closed_by.nil()) current.closed_by = gs.getUserID() + ""; if (current.closed_at.nil()) current.closed_at = gs.nowDateTime();
PRB1419590
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.