- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2015 12:08 PM
Hi,
I saw the addCondition method in the GlideRecord page, GlideRecord - ServiceNow Wiki. The method only mentioned one time in an example on the page. I tried to search it but in vain. Where I can find the details of the method?
Regards,
Eric Poon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2015 11:53 AM
And then I say that and here it is in my developer's instance:
GlideQueryCondition
The scoped QueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.
In the case of addCondition(), an implied AND is added.
addCondition(String name, String oper, Object value)
Adds an AND condition to the current condition.
Name | Type | Description |
---|---|---|
name | String | The name of a field. |
oper | String | (Optional) The operator for the query. If you do not specify an operator, the condition uses an equals operator. |
value | Object | The value to query on. |
Type | Description |
---|---|
GlideQueryCondition | The query condition. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2015 12:24 PM
Check here in Section 8 > Scripting in Business Rules - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2015 11:40 AM
I tried to search the page but could not find the addCondition method on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2015 11:52 AM
Add condition? Or addOrCondition()? Add condition is just addQuery().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2015 11:53 AM
And then I say that and here it is in my developer's instance:
GlideQueryCondition
The scoped QueryCondition API provides additional AND or OR conditions that can be added to the current condition, allowing you to build complex queries.
In the case of addCondition(), an implied AND is added.
addCondition(String name, String oper, Object value)
Adds an AND condition to the current condition.
Name | Type | Description |
---|---|---|
name | String | The name of a field. |
oper | String | (Optional) The operator for the query. If you do not specify an operator, the condition uses an equals operator. |
value | Object | The value to query on. |
Type | Description |
---|---|
GlideQueryCondition | The query condition. |