Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Set view on SCTASK form

Tom Lapkowicz
Tera Expert

Hello.  For the SCTASK form, I have a view called Supply Order.  If the Short Description for the SCTASK begins with "Supply Order request" then I would like the SCTASK to open in the Supply Order view.  Is there a way that this can be set?  Thank you.

4 REPLIES 4

Paul Curwen
Giga Sage

You need to create View Rule and set the table to sc_task and set the Conditions accordingly e.g. short_description STARTWITH Supply Order request

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Dnyaneshwaree
Mega Sage

Hello @Tom Lapkowicz,

Try this using UI script/ view rule.


Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Ehab Pilloor
Mega Sage

Hi @Tom Lapkowicz,

 

Create a View Rule on sc_task table and set the condition "short_descriptionSTARTSWITHSupply Order request". 

 

If you found my reply useful, please mark it as Solution and Helpful. This will help me and the community.

 

Thanks and Regards,

Ehab

 

 

I attempted to create a View Rule.  For items where the Short Description starts with "Supply Order request" it is opening them up in the Supply Order view (as expected/desired).  However, for items where the Short Description does not start with "Supply Order request" it is still opening them in the Supply Order view.  Any ideas what I am doing wrong?  I have attached screenshots of the View and the View Rule.  Thank you.