Passing files/folders from Alfred to Shortcuts for making an archive

Hi. I am trying to pass selected file(s)/folder(s) from Alfred’s File Search to a custom Shortcut that uses the “Make Archive” action.

Shortcut:

image.thumb.png.aca09898ce0289387a89c44776756fd4.png

Workflow:

image.png.9c5409c2a0d49dc156b861117c2bc7da.png

image.thumb.png.70af5409c1cc97594c7c4ad281bb1104.png

image.thumb.png.5607ebd23874582dbec4840e27025a2e.png

The expectation is that if I select say, a folder in Alfred’s file search results and I bring up the action panel and select “Zip” it should generate a zip file having the same name as the folder. Atm, nothing happens.

Any help is appreciated.

Thanks in advance.

From the screenshot, your shortcut looks like it has a blank entry for Input rather than specifying it as Shortcut Input.

Don’t forget Alfred also contains a debugger.