Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

g_form.isNewRecord() gs equivalent

kungfuu72
Giga Expert

Is there a gs equivalent to the g_form.isNewRecord() ?

 

I find this very useful in client scripts, but sometimes, I see myself wanted to use this in UI Actions that are not client-based as well...

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

current.isValidRecord() is what you're looking for.   This SNGuru article explains the usage of both...



http://www.servicenowguru.com/scripting/client-scripts-scripting/testing-valid-record/


View solution in original post

5 REPLIES 5

jzhou
Kilo Explorer

Hi,


      I want to create a view rule that needs to tell if the record is new,   it seems neither isNewRecord() or isValidRecord() works in the view rule.



Any suggestions?




Thanks lot!



Jerry