I'm trying to return the URL of some attachments for a topic. I try to do the following to receive the url:

```
$(document).ready(function() {  
    GetFiles();

});

    function GetFiles() {
        var method = "GetListItems";
        var list = "Session Schedule";
        var fieldsToRead = "<ViewFields>" +
            '<FieldRef Name="ID"/>'+
            '<FieldRef Name="Title"/>'+
            '<FieldRef Name="LinkFilenameNoMenu"/>'+
            '<FieldRef Name="Created"/>'+
            '<FieldRef Name="EncodedAbsUrl"/>'+
 "<FieldRef Name='Date_x0020_and_x0020_Time' />" + 
 "<FieldRef Name='Attachments'/>" + "</ViewFields>";
        var query = "<Query>" + "<Where>" + "<Or>" + //"<Or>" +
         "<Eq><FieldRef Name=\"Status\" /><Value Type='Text'>Confirmed</Value></Eq>" + 
         "<Eq><FieldRef Name=\"Status\" /><Value Type='Text'>Ready</Value></Eq>" + 
         //"</Or>" + "<Eq><FieldRef Name=\"Status\" /><Value Type='Text'>Completed</Value></Eq>" + 
         "</Or>" + "</Where>" + "<OrderBy>" + "<FieldRef Name=\"Date_x0020_and_x0020_Time\"/>" + 
         "</OrderBy>" + "</Query>";

        $().SPServices({
            operation: method,
            async: false,
            listName: list,
            CAMLViewFields: fieldsToRead,
            CAMLLimit: 1,
            CAMLQuery: query,
            completefunc: function(xData, Status) {
            console.log("xData", xData);
                $(xData.responseXML).SPFilterNode("z:row").each(function() {
                 var url = $(this).attr("ows_EncodedAbsUrl")
                 console.log(url);
                });
            }
        });
    }

```

The problem is the URL I receive is correct up until the file name, where I get 1\_.000, 2\_.000 and so on instead of the name of the actual file. The url thus doesn't work.

What am I doing wrong? is it because the attachment is a ppt or am I missing something?

Thanks