Hello,
We have a published Power Automate Connector that has an action using Dynamic schema for output items. Following is sample structure:
DynamicParameterResponse:
type: object
properties:
value:
type: array
items:
x-ms-dynamic-schema:
operationId: GetDynamicParametersInCode
We have used Code for calling an API and returning dynamic schema response. We are creating schema based on API response in code script. This schema has a unique Key in the output, that can be seen when users hover over the property in Power Automate flow.
There are some flows created and being used for this Power Automate Connector already. All of this is working as expected till now. Let's call this Version 1 of the created flow and Version 1 of our Code script.
Question:
We have decided to change these Key names due to a requirement. For example, let's say the [properties/name] in the screenshot above will be changed to [properties/displayName] through our API and code. We can call this Version 2 of Code.
Our understanding is that, this will require users to edit their existing flows, because [properties/name] is no longer returned. End users will see blank values as 'name' is no longer a key value of any item. They will have to select [propeties/displayName] from dynamic results.
Can someone from the team help us confirm our understanding? We wanted to confirm that when we publish Version 2 of our code to Power Automate, then users who are still on Version 1 of their created flows will need to update their flows to Version 2? There was a discussion within our team that Power Automate might have mapped Version 1 of Flow and Code. And even if we publish version 2 of our code, existing version 1 flows will still continue to call Version 1 of code, and users might not require to update their flows (hoping that Version 1 of code is cached/stored somewhere).
Kindly let me know if more details/clarity is required.
TL/DR; We are updating version of our code script. This code change will update response structure, which will cause existing flows to behave improperly. Can you please confirm if the users will need to update their flows once we publish a new version of code? Or Power Automate has previous version of code cached/stored and old flows will still call old code version?