- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 03:33 PM
Hello,
This is probably the easiet question Il post here!!
I have the following script::
function hasEmailClient() {
var gr = new GlideRecord(data.table);
if (gr.get(data.sys_id)) {
return gr.getAttribute('taco_chiken') ? gr.getAttribute('taco_chiken') : false;
}
return false;
}
so this works for some tables and not others, I though this was checking a field on the table called 'taco_chiken', but its not.
I understand that you can check attributes on fields, but is this checking a attribute on the gliderecord obj itself?
the data that comes back from the getAttribute('...') I either 'True' or 'null'
How do I set/change the getAttribute per table?
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 04:20 PM
Hi Juan,
There's a api document.
Returns the dictionary attributes on the specified field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 04:20 PM
Hi Juan,
There's a api document.
Returns the dictionary attributes on the specified field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 04:31 PM