You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Parsers/App Update Script.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ function updateAvailable(grSSA) {
70
70
return false;
71
71
}
72
72
if (appsArray.length > 0) {
73
-
gs.info("\n\n------------------------------------------------\n\nLinks to track progress below the payload information\n\n(scroll down)\n\n-----------------------------------------------\n\n");
73
+
gs.info("\\n\\n------------------------------------------------\\n\\nLinks to track progress below the payload information\\n\\n(scroll down)\\n\\n-----------------------------------------------\\n\\n");
74
74
75
75
var appsPackages = {};
76
76
appsPackages.packages = appsArray;
@@ -81,30 +81,30 @@ if (appsArray.length > 0) {
81
81
var update = new sn_appclient.AppUpgrader().installBatch(data);
82
82
var updateObj = JSON.parse(update);
83
83
gs.info(
84
-
"\n\n------------------------------------------------\n\nOpen the Batch install link to monitor the installation progress. It may take some time for the apps to all populate in the related list. After all apps have populated the install will start and the State will change to In progress.\n\nBatch install:\n" +
84
+
"\\n\\n------------------------------------------------\\n\\nOpen the Batch install link to monitor the installation progress. It may take some time for the apps to all populate in the related list. After all apps have populated the install will start and the State will change to In progress.\\n\\nBatch install:\\n" +
var grSBIP = new GlideRecord('sys_batch_install_plan');
95
95
if (grSBIP.get(updateObj.batch_installation_id)) {
96
-
grSBIP.setValue('notes','It may take some time for the apps to all populate in the related list below (you can refresh the list as needed to see them populating). \n\nAfter all apps have populated the install will start and the State (above) will change to In progress. \n\nWhen the batch is done the state will update to Installed');
96
+
grSBIP.setValue('notes','It may take some time for the apps to all populate in the related list below (you can refresh the list as needed to see them populating). \\n\\nAfter all apps have populated the install will start and the State (above) will change to In progress. \\n\\nWhen the batch is done the state will update to Installed');
97
97
grSBIP.update();
98
98
}
99
99
} else {
100
100
gs.info(
101
-
"\n\n-----------------------------------------------\n\nAll apps appear to be up-to-date. \n\nIf you think this is incorrect please try running this script again with \`updateCheck\` set to \`true\`. This will check the store for any new updates.\n(sometimes there are apps in the Application Manager that say that there are updates but you can't actually update them)\n\n-----------------------------------------------\n\n"
101
+
"\\n\\n-----------------------------------------------\\n\\nAll apps appear to be up-to-date. \\n\\nIf you think this is incorrect please try running this script again with \`updateCheck\` set to \`true\`. This will check the store for any new updates.\\n(sometimes there are apps in the Application Manager that say that there are updates but you can't actually update them)\\n\\n-----------------------------------------------\\n\\n"
102
102
);
103
103
}
104
104
105
105
\`\`\`
106
106
`;
107
107
108
-
constmessage="<@U6E2TEKQ9> made a cool script for bulk updating apps!\n\n"+eric_script;
108
+
constmessage="<@U6E2TEKQ9> made a cool script for bulk updating apps!\\n\\n"+eric_script;
0 commit comments