---
title: Code Replace
slug: blueprint/code-replace
docTags: yO7XZ9PJxDCKZ-Mf4TSYB,HK_rxWrGo8iZHH4PvnxmZ
createdAt: 2026-04-17T18:28:53.561Z
---

:::CtaButton{label="🟢 Migrator" openInNewTab="false"}

:::

After generating the PAD code, but before actually exporting it to Power Automate Desktop, Blueprint will run any enabled Code Replace rules.  This allows users to literally perform a find & replace across the generated PAD code (i.e. Robinscript).&#x20;

This has several uses.  For example, since the code contains a variety of comments inserted by Blueprint like "INFO" or "TODO" comments, the user is able to replace those with actual code fixes.  Or if a user isn't happy with some aspect of code generated by Blueprint, they can override it.

Once a rule is created by clicking **Add New** the original code and substitute code can be entered as seen below:

::Image[]{src="https://api.archbee.com/api/optimize/HRPaq4oJ2h9pHAfcjJGa6/dOHs6PpLrdGlMtv9DZezD_image-1749239298512.png" size="70" width="1462" height="343" darkWidth="1462" darkHeight="343" position="center" showCaption="false"}

Exporting with this rule will substitute the TODO comment with the PAD action "Run subflow Page\_2".



