
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2019 04:58 AM
I have a currency type field in pm_project table. On GlideRecord of this table, I would like to check null/0 value on the currency field.
Could you please help?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2019 02:52 AM
Hi,
Thanks for the suggestions, I was looking for value check in addQuery of GlideRecord. Below simple code worked fine:
var projectGR = new GlideRecord('pm_project');
projectGR.addQuery('cost','!=','0'); //check Total Planned Cost
projectGR.query();
Here, cost(Total planned cost) is the Currency field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2019 02:52 AM
Hi,
Thanks for the suggestions, I was looking for value check in addQuery of GlideRecord. Below simple code worked fine:
var projectGR = new GlideRecord('pm_project');
projectGR.addQuery('cost','!=','0'); //check Total Planned Cost
projectGR.query();
Here, cost(Total planned cost) is the Currency field.