I had an assignment to create list where a link has to be populated in the same list page so that users can approve or reject from same page by clicking a link. I was able to do that using SharePoint Designer 2010 Workflow. How ever I am struct at an issue. The list items have file attachments and when a user opens task form, a hyperlink must be present that directs the user to the respective attachment for the list item. I tried adding the List as secondary data source and based on ascending or descending order of the ID the attachment is being called but not the respective attachment. i.e most recent or the initial attachment is being showed. If I add a repeating section, attachments present for all the items are being showed. I am not able to figure out how to filter out the repeating section so that the respective attachment for the list item is brought up. I am very new and beginner to InfoPath. Any help is appriciated.
Thank you