- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 06:03 AM - edited 06-20-2024 08:34 PM
I have below requirement, when case id is added/updated , it should be added to connect case IDs automatically in same order in format case id 1 , case id 2 etc.. How to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 11:19 PM - edited 06-20-2024 11:37 PM
Updated the script as below and it worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 08:45 PM
why not use List type field ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 08:57 PM
Hi @Anna_Servicenow ,
This is how you can achieve this. write business rule or client script per your requirement.
var caseId1 = 111;
var caseId2 = 200;
var caseId3 = 120;
// Concatenate the values with a comma separator
var caseIdArr = [caseId1, caseId2, caseId3].filter(Boolean).join(', ');
gs.print(caseIdArr);