
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 12:13 AM
When we click period(.) just next to objects(g_form, g_user....), we can see the methods of particular object and icons (F,S,O) in front them, what those icons refer to and why they are not same ?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 01:06 AM
Hi,
If it's 'F' then it is a function and it needs to be having braces () so that it can accept any parameters if needed.
Example : g_form.getValue('field_name');
If it's 'S' then it is not a function and returns a String. It do not need these brackets(). We cannot pass any parameters.
Example : g_user.first_name;
Mark as correct and helpful if it solved your query.
Regards,
Sumanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 12:19 AM
Hi,
Not sure but just a guess for me 'F' seems to be Function while 'S' seems variable/field's dictionary.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 12:28 AM
Those are scripting Assistance.It provides a contextual list of available properties and methods for script objects
https://developer.servicenow.com/dev.do#!/learn/courses/quebec/app_store_learnv2_scripting_quebec_scripting_in_servicenow/app_store_learnv2_scripting_quebec_introduction_to_scripting_in_servicenow/app_store_learnv2_scripting_quebec_servicenow_script_editor
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 01:06 AM
Hi,
If it's 'F' then it is a function and it needs to be having braces () so that it can accept any parameters if needed.
Example : g_form.getValue('field_name');
If it's 'S' then it is not a function and returns a String. It do not need these brackets(). We cannot pass any parameters.
Example : g_user.first_name;
Mark as correct and helpful if it solved your query.
Regards,
Sumanth