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 375f38a commit b9b7055Copy full SHA for b9b7055
Business Rules/Attachment Variable from Activity Stream to Clip Icon/Attachment Variable Fix.js
@@ -0,0 +1,12 @@
1
+//Run this Business Rule async Insert on the sc_req_item table if using the attachment type variable in a Catalog Item
2
+(function executeRule(current, previous /*null when async*/) {
3
+ var gr = new GlideRecord("sys_attachment");
4
+ gr.addQuery("table_name", "ZZ_YY" + current.getTableName());
5
+ gr.addQuery("table_sys_id", current.sys_id);
6
+ gr.query();
7
+ while (gr.next()) {
8
+ gr.table_name = current.getTableName();
9
+ gr.update();
10
+
11
+ }
12
+})(current, previous);
0 commit comments