Statistics
The Highest Post







Statistics
Count 94
Avg 21.00
Min 21
Max 21
Angualr Top questions

Details



What is GlideRecord? GlideRecord in scripting is used to query the database.<br> gr. AddQuery adds a query to the dom.<br> // Example code below sends a Message that the CallerId and short description already exist.<br><br> gr(function executeRule(current, previous /*null when async*/) {<br> // Add your code here<br> var gr = new gliderecord('incident');<br> gr.addQuery('short_discription',current,short_description);<br> gr.addQuery('caller_id,current.caller_id');<br> gr.query();<br> if(gr.next())<br> {<br> current.setAbortAction(true);<br> gr.addErrorMessage('You cannot submit the incident as its already exist');<br> }<br><br> })(current, previous);<br>
Related Topics