- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 05:22 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:17 AM
Hi @Community Alums ,
will reuse an existing assessment instance and match an existing record if:
- The metric type (typeSysID)
- The user (userID)
- And the source record (sourceRecordID, if provided or empty)
If sourceRecordID is empty or reused, the system assumes it's the same context and updates the existing instance.
To ensure a new instance is created, you must:
- Provide a unique sourceRecordID (e.g., the sys_id of the RITM or task).
- Ensure the metric type is published and has valid metric categories and assessable records.
Links to documentation and community:
- AssessmentCreation - Global
- Solved: AssessmentCreation - Global - Using Business Rule - ServiceNow Community
Please mark this as helpful and correct if this resolved your issue.
Thanks,
Yaswanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:17 AM
Hi @Community Alums ,
will reuse an existing assessment instance and match an existing record if:
- The metric type (typeSysID)
- The user (userID)
- And the source record (sourceRecordID, if provided or empty)
If sourceRecordID is empty or reused, the system assumes it's the same context and updates the existing instance.
To ensure a new instance is created, you must:
- Provide a unique sourceRecordID (e.g., the sys_id of the RITM or task).
- Ensure the metric type is published and has valid metric categories and assessable records.
Links to documentation and community:
- AssessmentCreation - Global
- Solved: AssessmentCreation - Global - Using Business Rule - ServiceNow Community
Please mark this as helpful and correct if this resolved your issue.
Thanks,
Yaswanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:29 AM
@Community Alums
Can you share your complete business requirement here and where are you using that script?
New assessment will be created because of this line
var result = new SNC.AssessmentCreation().createAssessments(typeSysID, sourceRecordID, userID);
Why are you updating it later?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader