Azure / LogicAppsUX

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

Copy-Paste Not Updating Dynamic Content for Action Inside For-Each Actions #6126

Open pranaydubeymicrosoft opened 1 week ago

pranaydubeymicrosoft commented 1 week ago

Describe the Bug with repro steps

  1. Create a Logic App with recurrence trigger and get items SharePoint action.
  2. Add a for-each action and iterate over the dynamic content returned from the SharePoint action.
  3. Inside the for-each action, add a compose action. Provide "Title" for input (from SharePoint dynamic content).
  4. Save Logic App.
  5. Copy the for-each action, paste it below.
  6. Actions inside the pasted for-each will have errors.

You can paste the action in notepad and see that the nodeId reflects the new value (For_each-copy) but the dynamic content inside is not updated accordingly:

{"nodeId":"For_each-copy","serializedOperation":{"type":"Foreach","foreach":"@body('Get_items')?['value']","actions":{"Compose":{"type":"Compose","inputs":"@item()?['Title']"}},"runAfter":{"Get_items":["SUCCEEDED"]}},"allConnectionData":{},"staticResults":{},"isScopeNode":true,"mslaNode":true}

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{"nodeId":"For_each-copy","serializedOperation":{"type":"Foreach","foreach":"@body('Get_items')?['value']","actions":{"Compose":{"type":"Compose","inputs":"@item()?['Title']"}},"runAfter":{"Get_items":["SUCCEEDED"]}},"allConnectionData":{},"staticResults":{},"isScopeNode":true,"mslaNode":true}

Screenshots or Videos

Image

Browser

Edge

Additional context

No response