Calculate total count of sys_ids from a variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 12:05 AM - edited 03-09-2024 12:23 AM
Hi All,
I want to calculate the count of sys_ids which is getting returned but i am unable to do so as my script is not working. Can soemone please help me to rectify my script. Below the snippet from the script and logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 01:36 AM
Hi @Rooma1 ,
I think it is sending only string value to array
so set the value which is received to string variable and convert it to array and find the length
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 02:02 AM
@Sree Vasthava M Thanks for the suggestion.
Just converted the array type variable to string type and calculated the length without converting it to array.
Snippet below:
Thanks,
Rooma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 02:13 AM
Hi @Rooma1 ,
To find the count of sys_id we need to split the string and add to an array and find the length for count
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2024 02:39 AM
Hi Sree, Not sure how it is giving the count as expected without splitting it and adding to an array. But I am getting the expected results.
Thanks,
Rooma