@VenkataVikramD I hope you are passing file name to connect rest to download attachment. Once attachment is selected in the UI, that will be set to a property. Set that property value to your page which you are using to hit connect rest.
If you are using data page to hit connect rest, use request data transform to set it.
Yes, i am passing the attachment (file name) to the REST connector. How can I get the file name from the UI? The section has a list of attachments. I configured the attachments as link and in the actions i dont know what to use to set the filename to a property.
@VenkataVikramD okay each of the page is having attachment info. Now on click, you will be calling a DT to hit api. Add index parameter to the DT and from the actions where the DT is called, pass .pxListSubscript to the index parameter. Now you have index of the attachment. You can just do .Attachmenist(param.index).FileName. You can set any property you want to set with the index.