Hi ,
I am trying to create a flow inside flow by using a flow managment connectors like "Get flow" & "Create flow".
for this I am referring below article which is similar to my requirement.
http://www.myfatblog.co.uk/index.php/2020/02/using-powerautomate-deploy-powerautomate-flow-deploying-flow-sounds-like-inception/
I have created flow based on the above article but I am facing below Issue.
Error :The 'inputs.parameters' of workflow operation 'Create_Flow' of type 'OpenApiConnection' is not valid. Error details: The API operation does not allow writing a value for parameter 'Flow/properties/connectionReferences[0]/displayName'. This parameter is read only.
I am able to Create a dynamic definition Properly but still facing issue at the step of "Crate Flow"
Please find below screen for my flow.
Screen1

"Create Flow" Step with parameter :

Also Providing definition that I have created dynamically:
{
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
},
"$authentication": {
"defaultValue": {},
"type": "SecureObject"
}
},
"triggers": {
"When_a_file_is_created_(properties_only)": {
"recurrence": {
"frequency": "Minute",
"interval": 5
},
"splitOn": "@triggerOutputs()?['body/value']",
"metadata": {
"flowSystemMetadata": {
"swaggerOperationId": "GetOnNewfileItems"
}
},
"type": "ApiConnection",
"inputs": {
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
"connectionName": "shared_sharepointonline",
"operationId": "GetOnNewFileItems"
},
"method": "get",
"path": "/datasets/https%3A%2F%2Fm365x597488.sharepoint.com%2Fsites%2Fpwa%2FFlow%2520as%2520Template/tables/bdfd1579-a01f-44a7-86b8-d02917d7fe7b/onnewfileitems",
"queries": {
"folderpath": "/Shared Documents"
},
"authentication": "@parameters('$authentication')"
}
}
},
"actions": {
"Send_an_email_(V2)": {
"runAfter": {},
"type": "OpenApiConnection",
"inputs": {
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365",
"connectionName": "shared_office365",
"operationId": "SendEmailV2"
},
"parameters": {
"emailMessage/To": "@triggerOutputs()?['body/Author/Email']",
"emailMessage/Subject": "Test email for flow as template",
"emailMessage/Body": "<p>FYI</p>"
},
"authentication": "@parameters('$authentication')"
}
}
},
"description": "Testing new description"
}