Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
77 stars 84 forks source link

Not always possible to edit dynamic content #5313

Open your-azure-coach opened 3 months ago

your-azure-coach commented 3 months ago

Describe the issue

Please look at the screen recording below. There are three cases:

  1. Changing the dynamic content of the condition is not possible
  2. Changing the dynamic content in the HTTP action URL is not possibe
  3. Changing the dynamic content in the Set Variable is possibe

LogicApp-EditDynamicContent

It would be great to always be able to edit dynamic content and function expressions.

Are you using new designer or old designer

New Designer (With action panels)

Screenshots or Videos

No response

Browser

VS Code

Additional context

No response

hartra344 commented 3 months ago

There is no screen recording attached?

your-azure-coach commented 3 months ago

Sorry forgot, updated right now

hartra344 commented 3 months ago

I see now, this is by design with dynamic content tokens because there's nothing to edit. They're simple insertions you can delete and add another. Function Expressions however should be editable when you click on them, those are much more complex.

your-azure-coach commented 3 months ago

I have quite some situations where I need to change dynamic content or maybe I have to wrap it inside a function expression (e.g. string()). In such cases, I always need to go first to the code view, copy paste the dynamic content and use it in a new function expression.

Being able to change dynamic content would be a great UX improvement

hartra344 commented 3 months ago

You still wouldn't be able to wrap it in a function because dynamic content is seperate(and handled seperate technically) from expressions. You would need to remove the one there and add another one.

preetriti1 commented 2 months ago

@your-azure-coach - As travis mentioned, only function expressions are editable because you can add/remove/update the expression and also add outputs from previous actions within function expressions. In your scenario you will have to add the function expression string() switch to dynamic tab and then pick the output from other tab in the picker.

Outputs are not editable and function expressions are, if you really want use the function expression and then add the dynamic content