Skip to content

Conversation

@JonSandoval
Copy link
Contributor

Flow Action: Bulk Hardware Model Transfer

Migrate all assets and Configuration Items (CIs) associated with a hardware model to a new hardware model.

Inputs

  • Source Model (source_model): The Reference.Hardware Model from which assets and CIs will be migrated. This is a Mandatory input.

  • Target Model (target_model): The Reference.Hardware Model to which assets and CIs will be migrated. This is a Mandatory input.

  • Record limit (record_limit): An Integer value to limit the number of records processed during the migration run.

  • Update System Fields (update_system_fields): A True/False flag to determine if system fields (e.g., sys_updated_on, sys_updated_by) on the records should be updated during the migration.

  • Delete Source Model? (delete_source_model): A True/False flag to determine if the Source Model should be deleted after a successful migration of its associated records.

Error Evaluation

The action includes explicit error evaluation conditions to handle cases where mandatory inputs are missing, providing clear status codes and messages:

Condition Status Code Status Message Details
If Source Model is Empty 1 Source model can't be empty. This condition triggers if the source_model input is not provided.
If Target Model is Empty 1 Target model can't be empty. This condition triggers if the target_model input is not provided.
If Record Limit is Empty 1 Record limit can't be empty. This condition triggers if the record_limit input is not provided.
Screenshot 2025-10-06 154800 Screenshot 2025-10-06 154754 Screenshot 2025-10-06 154328 Screenshot 2025-10-06 154805

admin added 2 commits October 6, 2025 11:33
Migrate all assets and CIs for a hardware model to a new hardware model.
@github-actions
Copy link

github-actions bot commented Oct 6, 2025

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@snamjosh snamjosh self-assigned this Oct 6, 2025
@snamjosh snamjosh merged commit c4edbf8 into ServiceNowDevProgram:main Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants