I have created Custom List with few columns namely:
Title
Description
HrefLink
And optionally upload Attachments to the list item.
My scenario is as following, fetch the data from the list and print the data in list with hyperlink. Here, for hyperlink I should attach the any attachment is there for an item else pull the HrefLink field value.
How can I find if a list item has an attachment and how can I pull the path of attachment and print it?
I have achived fetching the attachments using the following login and printed to literal: