Search This Blog

Tuesday, April 19, 2022

HCL Interview Questions - Servicenow

1. What are the various ways to trigger Notification?

Ans: Notification can be triggered whenever                                        

 1)A record is Inserted or Updated into the Table

 2)The specified event is fired

 3)Via a Flow Action"


2. How many parameters are passed to eventQueue while writing BR to send notification? Tell the parameters.

Ans: 4 Parameters are passed to eventQueue in BR.                                                             

example: gs.eventQueue('event name', GlideRecord, parm1, parm2);"


3. If more than 4 parameters we want to pass how we can do that?

Ans: https://community.servicenow.com/community?id=community_question&sys_id=b45f0283dbea0c544819fb243996193b


4. What is the name of the approver table?

Ans: sysapproval_approver


5. If 10 approvers are there, and 9 approvers should get an approval request how we can do this?

Ans: Create approval activity by writing script to send approval to all other users except one user


6. How can we make the field read-only for a specific user or role?

Ans: By creating ACL


7. What is ACL? If the first ACL is created with a table. none and 2 roles admin and ITIL are assigned, the second ACL with table.* and 1 role admin is assigned. Who can read the data in a table?

Ans: ACL helps to control that what data user can access and how he can access it. Generally we provide CRUD access to users by specifying roles. Answer for the scenario is both can read records from the table as we are providing record level access i.e.table.none to both the roles


8. How can auto-populate the company field for requested for?

Ans: This we can achieve both with and without script. Without scripting Data lookup definition is used which will match the field of service catalog and set with specified field. With scripting we need to write Service catalog onChange Client script. As requested for value will get changed it will auto populated the required data in next field.


9. How to get server data at the client-side?

Ans: To get data from server at client side we can use any one from                                              1) g_scratchpad: At BR g_scratchpad variable is created and store the required data in it. and this g_scratchpad variable will be used in client script.

    2) getRefernce(): use it in a client script to retrieve the entire record of a reference field/variable

    3) GlideAjax: GlideAjax is a class in ServiceNow which is used to execute server-side code from the client-side. It is used by client-side scripts to send data to and receive data from the ServiceNow server. 


10. How g_scratchpad is used?

Ans: At BR g_scratchpad variable is created and store the required data in it. and this g_scratchpad variable will be used in client script.     


11. In which type of BR do we write g_scratchpad?

Ans: Display BR


12. What is Async BR?

Ans: same as After but here the process run in the background.when we don’t need that data right away.


13. What is the use of the onSubmit () client script?

Ans: onSubmit() client script will get executed when the user submits the form. The code written in this area is basically use to validate the form. 


14. What is GRC? Elaborate

Ans:GRC (governance, risk, and compliance) is an organizational strategy for managing governance, risk management, and compliance with industry and government regulations. Governance is the set of rules, policies, and processes that ensures corporate activities are aligned to support business goals. 


15. What is Vendor Management?

Ans: describes the processes organizations use to manage their suppliers, who are also known as vendors.


16. What new features of GRC are there in the Rome instance?

Ans: separate Workspace for Policy and Compliance,Risk,Audit 


17. What is a UI builder?

Ans: UI Builder enables developers to build new pages or customize existing pages for web-based workspace and portal experiences.


18. What is Business Rule?What are types of BR?

Ans: Business rule is javascript code which excecuted on server side.Four types of business rule display BR,Before BR,After BR ,Asysncronous BR 


19. Explain steps of GlideAjax?

Ans: https://www.basicoservicenowlearning.in/2019/12/glideajax-in-servicenow.html


20. What are ways to get data from server side to client?

Ans: There are 3 ways to get data from server side to client .1GlideAjax,2 getReference,3 using g_scratchpad  Glide Ajax is best practice 


21. On which module did you work?What type of BR did you write?

Ans: Worked on all modules of ITSM, I designed simple business rules for Incident, Service Requests & Task modules.

No comments: