- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 08:16 AM
Hi Team,
I just wanted to clarify about client side and server side. Suppose, there is a requirement to change the assignment group on the incident form if user changes the category or sub-category field. I can achieve it through Assignment look-up rules but I am confused here if this operation is Server side or Client side? Could anyone please help me understand how can I differentiate between Client Side or Server- Side(using some examples). I searched but unable to get clarity over the same.
Thank you so much.
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 10:25 PM
Client Side Operation : It is something which you directly see in your browser window. E.g. When you select an Assignment Group for an incident, the Assigned To field automatically gets mandatory. Here , the operation that you have performed tales place only in your browser window and it doesn't depend on any backend table which you aren't seeing against your screen. Commonly used client side operation are : Client Scripts, UI policy , UI scripts .
Server Side Operation : Let's say you have written a script logic in which all the child incidents are closed once you close the parent incident. Now, when you hit the close button on the parent incident, you can't see the child incident at the same time in your browser window . However, your script logic takes care of the operation which you don't have visibility to just by looking at your screen. Hence, it's a server side operation.Commonly used server side operation are : Business rules,Data Polices, ACLs, Flows etc.
Coming to your question about assignment rules, it's definitely a Server Side operation as the mapping is stored in some data look up table which is being queried every time you change the category/subcategory field.
Please mark this helpful or accept the solution if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 08:22 AM
Hi Sumit,
Here is a good read for you
Client and Server-side Programming — ServiceNow Elite
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 09:02 AM
Hi Anurag,
Thank you so much for the quick reply and the resource. I went through that and did find out that if we have to do limited database look-ups then it is client side. So, shall I conclude that the requirement above if I am achieving using Assignment look-up rules then it would be a client side, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 08:23 AM
Hi
you can find a good explanation on page https://dxsherpa.com/blogs/handling-assignment-rules-in-servicenow/
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2022 08:24 AM
Hello,
You can perform the above requirement using a client script also or you cna involve server script also there are different ways to do it
In terms of ServiceNow there are different scripts for client and server side
Client Side - These run when form loads etc or any field changes
Run JavaScript on the client (web browser) when client-based events occur, such as when a form loads, after form submission, or when a field changes value.
a) Client Script
b) UI Policies
c) UI Scripts
Server side - These run when user does interaction and updated record or inserts or deletes.
Server scripts run on the server or database. They can change the appearance or behavior of ServiceNow or run as business rules when records and tables are accessed or modified.
Server-side Glide APIs (Application Programming Interfaces) provide classes and methods that you can use in scripts to perform server-side tasks.
refer below links for more details
CLIENT AND SERVER-SIDE PROGRAMMING
Please mark this helpful or accept the solution if this helps you