551 viewsOctober 14, 2023ServiceNow 0 Working Code969 October 2, 2023 0 Comments var task = new GlideRecord ('task'); var new_guid = task.setNewGuid(); gs.print(new_guid) Generates a new GUID and sets it as the unique ID (sys_id) for the current record 0 Answers ActiveVotedNewestOldest Register or Login