Haven't tested these all recently within global/local scopes, so feel free to have a play! option 1 use an encoded query embedded in the GlideRecord , e.g. var grProf = new GlideRecord ( 'x_cls_clear_skye_i_profile' ); grProf . addQuery ( 'status=1^ owner=NULL ' ); grProf . query (); even better use the glideRecord addNotNullQuery or addNullQuery option 2 JSUtil.nil / notNil (this might be the most powerful. See this link ) example: if ( current . operation () == 'insert' && JSUtil . notNil ( current . parent ) && ! current . work_effort . nil ()) option 3 there might be times when you need to get inside the GlideRecord and perform the check there, for example if the code goes down 2 optional routes depending on null / not null can use gs.nil : var grAppr = new GlideRecord ( 'sysapproval_approver' ); var grUser = new GlideRecord ( 'sys_user' ); if ( grUser . get ( 'sys_id' , current . approver )){...
Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
ReplyDeleteSoftware Testing Training in Chennai
testing courses in chennai
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
SEO training in chennai
Software Testing Training in Chennai
Software testing training in T Nagar
thank you for your feedback
Deleteinstagram takipçi satın al | takipçi satın al | https://apkarchiv.com
ReplyDeleteThanks for sharing the best information and suggestions, I love your content, and they are very nice and very useful to us.
ReplyDeleteBest Digital Marketing Courses & Training Institutes in Delhi, NCR
Best Institute for Python Training Course in Delhi, NCR
Core to Advanced Excel Training Course in Delhi, NCR
AutoDesk Training Course in Delhi with Advanced Level
1- takipçi satın al
ReplyDelete2- takipçi satın al
3 - takipçi satın al
It's an excellent article you've written here about Commercial Cleaning Software Your article provided me with some unique and useful knowledge. Thank you for bringing this post to our attention.
ReplyDeleteThis comment has been removed by the author.
ReplyDeletesalt likit
ReplyDeletesalt likit
dr mood likit
big boss likit
dl likit
dark likit
LH4RL
salt likit
ReplyDeletesalt likit
J4X