From 6cd4cd003930da807440647d41fc4a0649bd5a8d Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Thu, 13 Oct 2022 22:34:31 +0530
Subject: [PATCH 01/10] Create script.js
---
Background scripts/script.js | 1 +
1 file changed, 1 insertion(+)
create mode 100644 Background scripts/script.js
diff --git a/Background scripts/script.js b/Background scripts/script.js
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/Background scripts/script.js
@@ -0,0 +1 @@
+
From dea746afbfa4ab042797614f8c59d03f0c131323 Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Thu, 13 Oct 2022 22:41:57 +0530
Subject: [PATCH 02/10] Delete Background scripts directory
---
Background scripts/script.js | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 Background scripts/script.js
diff --git a/Background scripts/script.js b/Background scripts/script.js
deleted file mode 100644
index 8b13789179..0000000000
--- a/Background scripts/script.js
+++ /dev/null
@@ -1 +0,0 @@
-
From 0b8b632b726a4704c8d6619a26360b1bd2408c38 Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Thu, 13 Oct 2022 22:45:07 +0530
Subject: [PATCH 03/10] Create Convert comma separated values in string to
columns
---
.../Convert comma separated values in string to columns | 1 +
1 file changed, 1 insertion(+)
create mode 100644 Useful-scripts/Convert comma separated values in string to columns
diff --git a/Useful-scripts/Convert comma separated values in string to columns b/Useful-scripts/Convert comma separated values in string to columns
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/Useful-scripts/Convert comma separated values in string to columns
@@ -0,0 +1 @@
+
From 3de4451138efcdaf00be703e88aa7af45ecc9fcb Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Thu, 13 Oct 2022 22:54:26 +0530
Subject: [PATCH 04/10] Delete Convert comma separated values in string to
columns
---
.../Convert comma separated values in string to columns | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 Useful-scripts/Convert comma separated values in string to columns
diff --git a/Useful-scripts/Convert comma separated values in string to columns b/Useful-scripts/Convert comma separated values in string to columns
deleted file mode 100644
index 8b13789179..0000000000
--- a/Useful-scripts/Convert comma separated values in string to columns
+++ /dev/null
@@ -1 +0,0 @@
-
From b0fadf463ace47b2704558e92b8bc9078f864938 Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Sun, 8 Oct 2023 00:23:31 +0530
Subject: [PATCH 05/10] Create MID Server availability inside MID cluster.js
---
.../MID Server availability inside MID cluster.js | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
diff --git a/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js b/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
new file mode 100644
index 0000000000..c14bd1f1cc
--- /dev/null
+++ b/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
@@ -0,0 +1,10 @@
+var flag = 0; //initial flag to 0
+ var glideCluster = new GlideRecord('ecc_agent_cluster_member_m2m'); //m2m table stores cluser and all the midserver relation
+ glideCluster.addQuery('cluster', "sys_id of the cluster"); //replace "sys_id of the cluster" with sys_id of the MID server cluster
+ glideCluster.query();
+ while(glideCluster.next()){
+ if(glideCluster.agent.status=='Up'){
+ outputs.flag = 1; //if any one MID server is up proceed next step in the integration
+ break;
+ }
+ //else returns 0 and no MID server are up inside the cluster, abort integration logic and report to the concerened team
From bd82bd4e19998ea1bc6c9c18af3892f8fa3cee1e Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Sun, 8 Oct 2023 00:31:03 +0530
Subject: [PATCH 06/10] Create reame.md
---
.../reame.md | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 Flow Actions/Check MID Servers status inside MID Server cluster/reame.md
diff --git a/Flow Actions/Check MID Servers status inside MID Server cluster/reame.md b/Flow Actions/Check MID Servers status inside MID Server cluster/reame.md
new file mode 100644
index 0000000000..1c0f688507
--- /dev/null
+++ b/Flow Actions/Check MID Servers status inside MID Server cluster/reame.md
@@ -0,0 +1,7 @@
+During integration set up with flow designers which involves MID servers , its better to check if MID server is up and running before we proceed with next steps in the integration.
+when we are using MID Server cluster (where more than one MID server as a failover) its recommended to verify if atleast one MID server is up and establish the connect
+MID server status inside cluster.js logic check if atleast one MID server is up if yes process next step in the integration if not abort the integration (we can have process to inform concered team)
+example flow action :
+where "inputs.midServerCluster.sys_id" is Cluster sys_id as input to the action
+
+
From e6d6fd179fa2d17d25c7b051766f7b0cf6c51d3d Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Sun, 8 Oct 2023 00:34:50 +0530
Subject: [PATCH 07/10] Update MID Server availability inside MID cluster.js
---
.../MID Server availability inside MID cluster.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js b/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
index c14bd1f1cc..304b03aeb1 100644
--- a/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
+++ b/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
@@ -7,4 +7,4 @@ var flag = 0; //initial flag to 0
outputs.flag = 1; //if any one MID server is up proceed next step in the integration
break;
}
- //else returns 0 and no MID server are up inside the cluster, abort integration logic and report to the concerened team
+ //else returns 0 and no MID server are up inside the cluster, abort integration logic and report to the concerened team.
From 4c241247b6f4e457bfe64796d031524936fb89b1 Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Sun, 8 Oct 2023 00:44:18 +0530
Subject: [PATCH 08/10] Delete Flow Actions/Check MID Servers status inside MID
Server cluster directory
---
.../MID Server availability inside MID cluster.js | 10 ----------
.../reame.md | 7 -------
2 files changed, 17 deletions(-)
delete mode 100644 Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
delete mode 100644 Flow Actions/Check MID Servers status inside MID Server cluster/reame.md
diff --git a/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js b/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
deleted file mode 100644
index 304b03aeb1..0000000000
--- a/Flow Actions/Check MID Servers status inside MID Server cluster/MID Server availability inside MID cluster.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var flag = 0; //initial flag to 0
- var glideCluster = new GlideRecord('ecc_agent_cluster_member_m2m'); //m2m table stores cluser and all the midserver relation
- glideCluster.addQuery('cluster', "sys_id of the cluster"); //replace "sys_id of the cluster" with sys_id of the MID server cluster
- glideCluster.query();
- while(glideCluster.next()){
- if(glideCluster.agent.status=='Up'){
- outputs.flag = 1; //if any one MID server is up proceed next step in the integration
- break;
- }
- //else returns 0 and no MID server are up inside the cluster, abort integration logic and report to the concerened team.
diff --git a/Flow Actions/Check MID Servers status inside MID Server cluster/reame.md b/Flow Actions/Check MID Servers status inside MID Server cluster/reame.md
deleted file mode 100644
index 1c0f688507..0000000000
--- a/Flow Actions/Check MID Servers status inside MID Server cluster/reame.md
+++ /dev/null
@@ -1,7 +0,0 @@
-During integration set up with flow designers which involves MID servers , its better to check if MID server is up and running before we proceed with next steps in the integration.
-when we are using MID Server cluster (where more than one MID server as a failover) its recommended to verify if atleast one MID server is up and establish the connect
-MID server status inside cluster.js logic check if atleast one MID server is up if yes process next step in the integration if not abort the integration (we can have process to inform concered team)
-example flow action :
-where "inputs.midServerCluster.sys_id" is Cluster sys_id as input to the action
-
-
From 34280f0615e20dc88fe899c0acfdadfdc359bc57 Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Sun, 5 Oct 2025 20:49:14 +0530
Subject: [PATCH 09/10] Create script.js
---
.../script.js | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/script.js
diff --git a/Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/script.js b/Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/script.js
new file mode 100644
index 0000000000..c6dde4d823
--- /dev/null
+++ b/Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/script.js
@@ -0,0 +1,11 @@
+var sysProperty = gs.getProperty("multi_value_object");
+try {
+ var out = JSON.parse(sysProperty); //convert string property value to object
+ for (var key in out) {
+ if (out[key]) {
+ gs.info(key + ":: " + out[key]);
+ }
+ }
+} catch (e) {
+ gs.info("Failed to parse property: " + e.message);
+}
From 73e484b767a68c43e74e03234b3007b3cb7f924c Mon Sep 17 00:00:00 2001
From: gowdah <42912180+gowdah@users.noreply.github.com>
Date: Sun, 5 Oct 2025 20:53:13 +0530
Subject: [PATCH 10/10] Create readme.md
---
.../readme.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/readme.md
diff --git a/Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/readme.md b/Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/readme.md
new file mode 100644
index 0000000000..52290c43fc
--- /dev/null
+++ b/Server-Side Components/Server Side/Use System Property as an Object to Store Multiple Values and Retrieve Attributes When Needed/readme.md
@@ -0,0 +1,12 @@
+**Create a property as shown below.**
+
+
+**Use JSON.parse to convert it to an object.**
+**Handle errors using try-catch and retrieve attributes as required in any server-side configuration.**
+Refer script.js file
+
+
+**Output:**
+
+
+