Scripts in Steps on Microsoft AD Spoke Action is skipped/missed when the action or flow is executedIssue Executing the Flow or Action is completed but the script steps or script inside any of the step in action is skipped or not honored. For Example: (Microsoft AD Spoke) "Add user to Group" action has the Create Payload Script Step which missed to run as a result no Runtime values seen Due to the above behavior, it missed the variables that need to be passed in the next Rest Step and resulted as a Bad Request CauseAction definitions are not having the right latest_snapshot reference, which can happen due to the multiple movements of the files by Update Sets, Upgrade of the Plugins/Spokes and Clone.Resolution 1. The issue was the wrong reference of the record in the sys_hub_action_type_snapshot table is present in the latest snapshot field of the action definition which caused the issue. 2. Go to the table sys_hub_action_type_definition 3. Search for the action that has the problem and note the sys_id of the "latest_snapshot" field. 4. The Latest Snapshot field is the reference of the record in sys_hub_action_type_snapshot. 5. Every Snapshot record has the step record like in the Action which needs to have a proper script. 6. Now go to the table sys_hub_step_instance table and search with the sys_id that noted from latest_snapshot on the action field. Like the below screenshot. 7. Click Run and the result should be like below: 8. Open the "Create payload" or the step name that was skipped by clicking the "Client ID" and note if the expected script is present. If not change the latest_snapshot sys_id by checking which record is having the actual script.