web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Strange behavior of em...
Power Automate
Unanswered

Strange behavior of empty strings when copying actions

(1) ShareShare
ReportReport
Posted on by 8,729 Super User 2026 Season 2

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"
 }
}

 

 

 

Chriddle_0-1682493156951.png

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?

 

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard