Migrated templates lose RB parameter mapping (Orchestrator-related)
After importing MPs from another environment, a template's RB activities lose their parameter mapping.
A bit of background:
I found a script online to remap Runbook guids for migration and that seems to work well enough after a few tweaks. It uses a direct name resolution, however the nature of Orchestrator Integration Packs requires separate Runbooks for each environment (configuration). This means the names of the Runbooks have to be unique so we have a numbering system to differentiate between environments (e.g. 01.02.05 Runbook Name). I've modified the guid mapping script to match only on the Runbook name and not the numbers.
Thanks to this script there is no longer an invalid guid message on the Runbook tab of the RB, but the prompts are blank and those with no mapping cannot be made active to add text to the field.
What am I missing? I really don't want to have to reconfigure every template with Runbook activities after migration.