Skip to main content

Posts

Showing posts with the label Flow

ServiceNow Error when copying flow: "Label cache error: Table not found"

ServiceNow Error when copying flow Label cache error: Table not found: x_cls_clear_skye_i_identity_settings: Label cache error: Table not found: x_cls_clear_skye_i_identity_settingswhen copying the promote profile subflowreproduceable on 5.2 and 3 KB1575415 - How To Remove Unnecessary Label Cache Entries of a Flow/Subflow/Action 11:43 Apparently, running the background script detailed in the SN KB should resolve the issue once happy, modify the fix script below to set debugmode to false --- Fix script: // README // This script updates and removes unnecessary label cache entries of a flow/subflow (defintion and master snapshot). // // IMPORTANT NOTES:  // This script only deletes the unnecessary label cache in the server. UI can hold a copy of a label cache. // Therefore refresh the browser that has the action opened once this script is executed for the action. // If this script is executed and the action is saved using UI, the previous label cache (before the delete) // will be sa...

ServiceNow Grant flow in application scope permission to create catalog tasks (error 'scope does not have create access to table sc_task')

 ServiceNow Grant flow in application scope permission to create catalog tasks if your flow is throwing an error: scope does not have create access to table sc_task follow the steps outlined here: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0854565 - go to sys_scope_privilege and create a new record - source scope: the application scope - target scope: global - target name: sc_task - target type: table - operation: create - status: allowed also you can ensure the flow is set to run as system user in the flow properties

ServiceNow Execute Flow Action from Script

 ServiceNow Execute Flow Action from Script    

ServiceNow Flow Designer Tables

 ServiceNow Flow Designer Tables Flow - sys_hub_flow Sub Flows - sys_hub_flow Actions - sys_hub_action_type_definition Steps - sys_hub_step_instance Both Flow and Sub Flows are stored in Same table and the Flow Type field helps to distinguish whether it is Flow or Sub Flow https://www.servicenow.com/community/developer-forum/flow-designer-flows-subflows-actions-storage-table/m-p/1454741 https://www.servicenow.com/community/now-platform-forum/where-are-values-for-flow-designer-step-instances-stored/m-p/1053034

ServiceNow How to Search Flow Designer for Keywords

 ServiceNow How to Search Flow Designer for Keywords use the text or keywords and enter the string:

ServiceNow For-each logic in Flow Designer

  ServiceNow recommends against iterating lists above 1000 records. To iterate lists above 1000 records, break the lists up and utilize separate flows. For more information, see ServiceNow's For Each flow logic documentation . https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/flow-designer/concept/flow-logic-for-each.html  (ServiceNow )

ServiceNow view additional info on flow / subflow tables

 go to flow table:  sys_hub_flow (use flow type column to distinguish between flow/subflow) (it appears that the sys_hub_flow_base table references subflows, as can be seen by the 'subflow' dictionary table on sys_hub_flow_instance  table) this is also a useful reference for additional table names: https://www.servicenow.com/community/developer-forum/flow-designer-flows-subflows-actions-storage-table/m-p/1454741