Hi Rajesh ,
As you mention Azure Logic Apps does not support enabling or disabling staticResultOptions
dynamically during runtime. This feature is typically set at deployment time and cannot be changed dynamically.
However, as a workaround, you might consider creating two separate Logic Apps - one for testing with staticResultOptions
enabled and another for production with it disabled. Beside you can use Azure DevOps or similar CI/CD tools to manage the deployment of these Logic Apps based on your requirements.
References:
- https://learn.microsoft.com/en-us/azure/logic-apps/test-logic-apps-mock-data-static-results?tabs=consumption
- https://techcommunity.microsoft.com/t5/azure-integration-services-blog/automated-testing-with-logic-apps-standard/ba-p/2960623
- https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-actions-triggers
I hope this help you,
Luis