how can i say current.isNewRecord in Condition?

hatazhix
Mega Expert

Hi,

how can i say current.isNewRecord in Condition?

its not State i think.

1 ACCEPTED SOLUTION

You can't.   You would have to put it in the condition field of the script or in an if statement in your script.   Condition building is for fields and there is no field that could replicate this.



Your other option in the business rule is the Insert check-box.   That only writes on insert, when the record is new.


View solution in original post

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Hai,



Not sure if I get your question exactly, I am assuming you mean how to write if the record is new in a condition of BR. If yes then you can write it as


current.isNewRecord()



Please let me know if you have any questions.


Hi,



i have it in script. So i want to change it to condition. For example [ State is New ]


You can't.   You would have to put it in the condition field of the script or in an if statement in your script.   Condition building is for fields and there is no field that could replicate this.



Your other option in the business rule is the Insert check-box.   That only writes on insert, when the record is new.


jamesmcwhinney
Giga Guru

Use the condition "Created" "is empty"