Access @item().name from within nested switch
Hi, Iโm running a pipeline that uses the Get Metadata activity to retrieve a list of child items (file names) from a directory. The pipeline then processes these items in a ForEach activity, which contains a nested Switch activity. The Switch chooses cases based on a pipeline parameter and attempts to perform a Copy Data action. However, when I try to reference @item().name directly in the Source field for the file location within the Copy Data action, it fails to populate. To work around this, Iโve had success using a Set Variable activity to assign @item().name to a variable beforehand and then referencing that variable in the Copy Data action. What is the best practice for implementing a clean and efficient Copy Data flow in scenarios like this?