Posts

Showing posts from October, 2016

What is the difference between ${URI} and ${URI_REF}?

${URI} Shows the word LINK where as  ${URI_REF} shows the display value of the record as the link text.

Application Server Performance Checks

Response Times Remove unused inactivity Monitors Optimize queries to search Adjust auto-complete wait time in increments of 50ms, no more than 750 Check SLA trace level -Monitor process duration of scheduled jobs Default Row Count Go To Search Option Auto-complete Search Option Table Rotation

Can you update a record without updating its system fields(like sys_updated_by, sys_updated_on)?

Yes, you can do it by using a function autoSysFields() in your server side scripting. Whenever you are updating a record set the autoSysFields() to false example: var gr = new GlideRecord('incident'); gr.query(); if(gr.next()) { gr.autoSysFields(false); gr.short_description = "ServiceNow" ; gr.update(); }

Global Business Rules v. Script Includes

 Both allow creation of reusable javascript • GBRs can impact performance unless contents are wrapped in functions • GBRs load on every interaction between a user and the platform • Script includes only load on demand and do not impact performance

Business Rule Best Practices

Use async whenever possible Use display to pass data from server to client side during form load Wrap code in functions to make variables local Use condition builder rather than script whenever possible