Get row count in import set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 05:34 AM
Hi all,
i have a data source file containing columns "PO number" and "assets" .After running the transform, i need to get the count of assets under each PO . How can i achieve this ? please suggest .
NOTE :
I am getting the total row count when am using below script :
ONCOMPLETE Transform Script:
var ast = new GlideRecord('u_dell_data');
ast.addQuery('sys_import_set',source.sys_import_set);
ast.query();
var count = ast.getRowCount();
gs.log("count of all assets":+count);
Thanks in Advance,
Niharika
- Labels:
-
Enterprise Asset Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 05:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2017 11:38 AM
The ServiceNow Wiki content is no longer supported. Updated information about this topic is located here: GlideAggregate
Visit http://docs.servicenow.com for the latest product documentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2017 02:17 AM
Hi Niharika,
You want to print the import set record count after the transform runs or count related to the target table after the transform map ran
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 11:25 PM
Hi Niharika,
Could you please confirm of any final solution you have received?
I have the same requirement as well!
Thanks & regards,
Pranshu