The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Restrict the update to Native UI only, dont allow Service Portal Update

Biso_Boby
Tera Contributor

Hi,

 

I have a requirement where the watchlist users comment/attach something on sc task, state should change from pending to In progress. 

 

But It should be restricted only to native UI  i.e, when watchlist  users update something on native UI, then only state should be moved to In progress. If they update in service portal, it should not update the state.

 

How to implement this with restricttion?

 

@Ankur Bawiskar @Dr Atul G- LNG @Sandeep Rajput 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Biso_Boby 

your business rule can't determine if update is happening in native or portal.

Why not change the state using client script and make sure the UI Type - Desktop so that this script runs only in native and not in portal?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Okay, Using client script can I get to know if watchlist user add a comment/attachment , both in single script. Or I need to any server side script include ?

@Biso_Boby 

on form you have watch_list users, you know the logged in user

then check if that logged in user is present in watch list or not

that will help you know who is updating

If my response helped please mark it correct and close the thread so that it benefits future readers.

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