Hey,
I am struggling with populating required Payload/DynamicParams field of send push notification v2 action in new designer of power automate.
The parameter should be JSON data type but nothing works.
I have tried
{"Param":1}
{"Param":"Param"}
+ non-JSON values like just "Param" or "Param" : "Param".
Each attempt to publish the flow returns the following error:
**
Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Tok se nepovedlo uložit, kód OpenApiOperationParameterValidationFailed, zpráva Input parameter 'payload' validation failed in workflow operation 'Send_push_notification_ZODPOVIDA': The API operation 'SendPushNotificationV2' is missing required property 'payload/dynamicParams'.."}}".
**
However JSON value {"Param":1} works just fine in the classic designer.
If I look at the code, I can see clearly, that there is a difference between the new and classic editor.
classic editor:
"parameters": {
"payload/playerType": "PowerApps",
"payload/app": "{\n \"appIdentifier\": \"@{variables('varAppID')}\",\n \"displayName\": \"Čedok Dispatch\",\n \"type\": \"CanvasApp\"\n}",
"payload/recipients": [
"@variables('varZodpovida')"
],
"payload/message": "Došlo k vytvoření incidentu, za jehož řešení zodpovídáte - @{triggerBody()?['text_1']}",
"payload/openApp": true,
"payload/dynamicParams": {
"Param": 1
}
},
vs. new editor:
"parameters": {
"payload/playerType": "PowerApps",
"payload/app": "{\n \"appIdentifier\": \"@{variables('varAppID')}\",\n \"displayName\": \"Čedok Dispatch\",\n \"type\": \"CanvasApp\"\n}",
"payload/recipients": [
"@items('Apply_to_each_INFO')"
],
"payload/message": "Došlo k vytvoření nového incidentu: @{triggerBody()?['text_1']}",
"payload/openApp": true,
"payload": {
"payload/dynamicParams": {
"Param": 1
}
}
},
At this time i can use the classic designer but it
feels like this might actually be a bug? Or am i missing something?
Thanks