snow-flow 3.6.16 → 3.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1026,11 +1026,16 @@ ${args.help_text ? `❓ Help: ${args.help_text}` : ''}
|
|
|
1026
1026
|
// ✅ Main connection: to the variable with required IO: prefix (if valid sys_id)
|
|
1027
1027
|
catalog_variable: catalogVariableWithPrefix
|
|
1028
1028
|
};
|
|
1029
|
-
//
|
|
1030
|
-
//
|
|
1031
|
-
if (
|
|
1032
|
-
//
|
|
1033
|
-
|
|
1029
|
+
// ✅ CRITICAL FIX: ui_policy field expects the NAME (short_description), NOT the sys_id!
|
|
1030
|
+
// ServiceNow uses the policy name as the reference value
|
|
1031
|
+
if (args.short_description) {
|
|
1032
|
+
actionData.ui_policy = args.short_description; // ✅ Use the policy NAME, not sys_id!
|
|
1033
|
+
this.logger.info(`🔗 Linking action to policy by NAME: "${args.short_description}"`);
|
|
1034
|
+
}
|
|
1035
|
+
else {
|
|
1036
|
+
// Fallback if somehow we don't have the name
|
|
1037
|
+
this.logger.error(`❌ CRITICAL: No policy name (short_description) available for linking!`);
|
|
1038
|
+
actionData.ui_policy = policyId; // Use sys_id as last resort
|
|
1034
1039
|
}
|
|
1035
1040
|
// Voeg alleen GEDEFINIEERDE action properties toe
|
|
1036
1041
|
if (action.mandatory !== undefined) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "3.6.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.6.17",
|
|
4
|
+
"description": "UI POLICY NAME FIX - v3.6.17 fixes critical issue where ui_policy field in catalog_ui_policy_action table expects the policy NAME (short_description) instead of sys_id. Actions will now properly link to policies using the policy name as the reference value, which is what ServiceNow actually expects.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"bin": {
|