How To find active & inactive Records in incident table
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 01:34 PM
Below Mentioned Code not working.......why can i have calrification about this.
8.1 addActiveQuery
public QueryCondition addActiveQuery()
- Adds a filter to return active records.
- Returns:
- QueryCondition - filter to return active records.
- Example:
var inc = new GlideRecord('incident'); |
addInactiveQuery
public QueryCondition addInactiveQuery()
- Adds a filter to return inactive records.
- Returns:
- QueryCondition - records where the active flag is false.
- Example:
var inc = new GlideRecord('incident'); |
Labels:
- 8,082 Views
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 01:47 AM
This will shw you the active records of the incident with the caller name and his email id.
var inc = new GlideRecord("incident");
inc.addEncodedQuery("active",true);
inc.query();
while(inc.next()){
gs.print(inc.number);
gs.print(inc.caller_id.getDisplayValue());
gs.print(inc.caller_id.email);
}
