I sometimes edit expressions outside of the PA web app by copying the whole action to the clipboard, editing the JSON in Visual Studio Code, and pasting it back using the web apps's My Clipboard feature.
This sometimes doesn't work and I finally found out why:
If you use empty strings in expressions, the expression is broken after insertion. The '' is removed.
If you just use "Copy to my clipboard" and select the action from "My clipboard" in the web app (without manipulating the JSON), the behavior is the same.
E.g.
Original is a compose action with a simple expression:
{
"inputs": "@coalesce(null,'')",
"metadata": {
"operationMetadataId": "e61dd61e-3705-463c-af86-8a647ce21ca0"
}
}
after editing (only name change to "Copy") and pasting it looks like this (the "inputs" is changed in action "Copy"):
{
"inputs": "@coalesce(null, )",
"metadata": {
"operationMetadataId": "e61dd61e-3705-463c-af86-8a647ce21ca0"
}
}
I can work around this by using string(null) instead of '', but I don't think that should be necessary.
Is this well known and is there a better way to handle this than using string(null)?
Would you consider this as a bug?
If so, how is this handled?
Is there an issue tracker for Power Automate Flows?
Is this already tracked? Can I see this?

Report
All responses (
Answers (