Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

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

5 REPLIES 5

Pradeep Sharma
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.


you need to be precise here...are you talking the "Condition" field on the Advanced tab?