- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 03:19 AM
Hello developers,
I have tricky implementation of getting sys ids in an array. after glide record i could query these sys ids and store in array. Now from this array i need to get their desplay values to send to notifications, Tried using getDisplayValue on this array but didnt work, , Any help is appreciated, Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 03:46 AM
You can use below logic for your requirement,
Example:-
This will definitely helps you to resolved your issue. Let me know in case you need to understand the flow or you can DM on LinkedIn.
If this solution resolves your query, kindly mark it as the accepted solution and give it a thumbs up.
Best Regards,
Krushna Birla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 03:37 AM
Hi @servicenow14710,
Can you share your scripts here?
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 03:46 AM
You can use below logic for your requirement,
Example:-
This will definitely helps you to resolved your issue. Let me know in case you need to understand the flow or you can DM on LinkedIn.
If this solution resolves your query, kindly mark it as the accepted solution and give it a thumbs up.
Best Regards,
Krushna Birla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 04:45 AM
Hi @servicenow14710 ,
lets say,,
var sysIds = ['sys_id_1', 'sys_id_2', 'sys_id_3'];
var displayValues = [];
sysIds.forEach(function(sysId) {
var gr = new GlideRecord('your_table_name');
if (gr.get(sysId)) {
var displayValue = gr.getDisplayValue();
displayValues.push(displayValue);
}
});
// Now you have an array of display values to use in notifications or any other logic
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....