Which of the following methods are useful in Access Control scripts?
Answer(s): B
Access Control scripts are server-side scripts that run when an Access Control rule is evaluated. They can use the gs and current objects to access the GlideSystem and GlideRecord methods, respectively. Some of the useful methods in Access Control scripts are:gs.hasRole() - This method checks if the current user has a specified role. It returns true if the user has the role, and false otherwise. For example, gs.hasRole(`admin') will return true if the user is an administrator, and false otherwise.current.isNewRecord() - This method checks if the current record is a new record that has not been inserted into the database yet. It returns true if the record is new, and false otherwise. For example, current.isNewRecord() will return true if the record is being created, and false if the record is being updated or deleted.The methods g_user.hasRole() and current.isNew() are not part of the server-side scripting API. They are part of the client-side scripting API, which is used in Client Scripts and UI Policies. They cannot be used in Access Control scripts.
[Access Control scripts][GlideSystem methods][GlideRecord methods]http://servicenowmypath.blogspot.com/2017/
Which one of the following client-side scripts apply to Record Producers?
Answer(s): A
Catalog Client Scripts and Catalog UI Policies are the client-side scripts that apply to Record Producers. Catalog Client Scripts allow you to add or modify functionality on a catalog item or record producer form. Catalog UI Policies dynamically change information on a catalog item or record producer form. UI Scripts, UI Actions, Client Scripts, and UI Policies do not apply to Record Producers.
Catalog client scripts, Catalog UI policieshttps://docs.servicenow.com/bundle/orlando-application- development/page/script/client-scripts/ concept/c_CatalogClientScriptCreation.html
When a ServiceNow instance requests information from a web service, ServiceNow is the web service:
Answer(s): D
When a ServiceNow instance requests information from a web service, ServiceNow is the web service consumer. A web service consumer is an application that sends requests to a web service provider and receives responses from it. A web service provider is an application that exposes its functionality as web services. A web service publisher is a person or organization that publishes web services for others to use. A web service specialist is a person who has expertise in developing or using web services.
Web serviceshttps://docs.servicenow.com/bundle/orlando-application- development/page/integrate/web-services/ reference/r_AvailableWebServices.html
Which one of the following is the fastest way to create and configure a Record Producer?
Answer(s): C
The fastest way to create and configure a Record Producer is to open the table in the Table records and select the Add to Service Catalog Related Link. This will automatically create a Record Producer with the same fields as the table and add it to the Service Catalog. You can then modify the Record Producer as needed. The other options require more steps and manual configuration.
Create a record producer
Which objects can you use in a Scheduled Script Execution (Scheduled Job) script?
https://developer.servicenow.com/dev.do#!/learn/learning- plans/quebec/servicenow_administrator/app_store_learnv2_automatingapps_quebec_scheduled_s cript_execution_scriptsThe objects that you can use in a Scheduled Script Execution (Scheduled Job) script are GlideSystem and GlideRecord. GlideSystem provides methods for performing system operations, such as logging, running background scripts, or getting system information. GlideRecord provides methods for working with records in the database, such as querying, updating, inserting, or deleting records. The current object is not available in Scheduled Script Execution scripts, as it refers to the current record on a form or list. The GlideUser object is also not available, as it refers to the current user session.
Scheduled Script Execution, GlideSystem, GlideRecord
Post your Comments and Discuss ServiceNow CAD exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the CAD content, but please register or login to continue.