Why it is not automatic
InfoPath code can access APIs, event lifecycles, and XML structures that Power Apps does not mirror. Converting it blindly would create a false sense of safety and can break business-critical validation or submission behavior.
Replacement options
- Power Fx for control-level validation or value-setting.
- Power Automate for notifications, approvals, integration, and post-submit work.
- Custom connectors or Azure Functions for external service calls.
- Business-process redesign when the old code solved a legacy-only problem.
What to send support
- The XSN package.
- The Analyze report showing the script/event handler.
- A plain-language description of what the code did in production.
- A test case that proves the expected behavior.

