We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

View Rule Not Applied To New Records

Vasil Vasilev
Mega Guru

Hello, 

 

I have issues with custom View Rules. What I want to achieve is to apply a custom view for Emergency Changes - both existing records and when creating new records. 

 

First, I tried with one view rule (see the screenshot), but no luck - the rules was applied either always (when Match conditions = Any) or never (when Match conditions = All).

 

I also tried to create two separate view rules: 

-> One with condition: Model is Emergency 

-> Second one with condition : Model is Emergency  & Created is Empty.

 

The result is: works for existing records, does NOT work for new records.

 

Any help is appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Vasil Vasilev
Mega Guru

 At the end, I ended up scripting an advanced view rule for the new records and a standard one with condition: 

"Model is Emergency" for the existing records.

View solution in original post

11 REPLIES 11

Ankur Bawiskar
Tera Patron

@Vasil Vasilev 

what happens you keep only this in condition? Does it work for Both New + Existing?

Match Conditions - None

Model is Emergency 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Vasil Vasilev 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar No, that doesn't help. This works only for existing records.

@Vasil Vasilev 

the condition should satisfy for new records as well

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Well, it doesn't... 🙂 It works only for existing ones, the new records load in the default view.