We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c0e63 commit ea62003Copy full SHA for ea62003
Integration/Import Sets/Import sets overview/TriggerDataSource.js
@@ -0,0 +1,14 @@
1
+triggerDataSource: function() {
2
+
3
+ var dataSourceSysId = gs.getProperty('ds.tag.based.sys.id'); //Store the sysId of DataSource
4
5
+ var grDataSource = new GlideRecord('sys_data_source');
6
+ if (grDataSource.get(dataSourceSysId)) {
7
+ var loader = new GlideImportSetLoader(); //OOB Method to load
8
+ var importSetRec = loader.getImportSetGr(grDataSource);
9
+ var ranload = loader.loadImportSetTable(importSetRec, grDataSource);
10
+ importSetRec.state = "loaded";
11
+ importSetRec.update();
12
+ return importSetRec.getUniqueValue();
13
+ }
14
+},
0 commit comments