Conditional parameters in designer don't show empty string

Christopher Fryett 145 Reputation points
2025-10-20T18:48:03.2533333+00:00

I have seen in several situations where in conditional actions the parameters don't show empty strings like "" and if there is a string value like "string" with quotes around it when saving it will remove the double quotes. In the code view it will be there. If someone was in the designer and saw an empty field or a value with no double-quotes when it is supposed to be it could cause misleading decisions.

User's image

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sonny Gillissen 3,996 Reputation points Volunteer Moderator
    2025-11-07T15:49:15.7333333+00:00

    Hi Christopher Fryett

    Thanks for reaching out on Microsoft Q&A!

    In the designer view, Logic Apps often hides empty strings ("") and strips quotes for readability. When you save, the underlying JSON in code view still contains the correct representation.

    The designer doesn’t show quotes because it assumes you’re entering raw text, not JSON. This can lead to misleading assumptions if someone expects to see "" for empty or quotes for literal strings.

    Before publishing, check the JSON to confirm values. Instead of relying on visual cues, explicitly set:

    @empty(variables('myVar'))

    And consider default values, for example with:

    coalesce()

    or

    if()

    Also, you could remove the "" from the Code View and replace it with null.

    Please click ‘Accept answer’ if you think my answer is helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.