Scripting Practice question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi @Aditya_hublikar,
I am trying to understand your examples - the first 6 or 7 codes could be achieved with no-code methods (in reports or list view), no?
Also, could you possibly explain what script is that - a background/fix script or something else?
You used gs.print(), so I assume it's background script.
Unsolicited advice: be careful with naming your variables gr, it is not considered a good practice unless it is in a function, explanation can be googled.
Answers generated by GlideFather. Check for accuracy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hello @GlideFather ,
I practice some scripting questions in background script , so i simply share here for beginners practice .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
In that case, it makes perfect sense! :)) my comment was from the accessibility perspective, that more people will know how to adjust report/list filters than to script something.
To practice and master your scripting, i recommend you to focus on the variable naming convention, instead of var gr to go with var incidentGR or something like this.
And also some consistency, in the last one you have GR (glideRecord) and GA (glideAggregate), instead try something like var attachmentGR = new GlideRecord('sys_attachment'); it can make your code more/better readable when there will be more lines or more separated functions or conditions.
Keep going and thanks for sharing!
Answers generated by GlideFather. Check for accuracy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
