ListAttachments, ReadAttachment

 1 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Garry Ferwerda
Basic Member
Posts: 20
Basic Member

    I am in the process of modifying some flows and converting the CGI getattachment processing to the ListAttachments service.  I am having trouble getting the ATTACHMENT-NAME and ATTACHMENT-TEXT values.  I am able to access orther values such as LIST numRecords value.  I took a XML file returned from a call to the service in a browser and created an .xsd file from it.  I don't know if the issue I am having is with the xsd or how I am trying to access the values in the flow.  Here is the error I am getting:

    Activity Assign9070: Error evaluating expression: commentName = XML3620_output.LIST.ATTACHMENT[ForEach4690_i].ATTACHMENT-NAME;


     

    I would like to hear from anyone who has successfully been able to use either the ListAttachments or ReadAttachment services and how you were able to access these values.

     

    Thanks,

    Ragu Raghavan
    Veteran Member
    Posts: 475
    Veteran Member
      Had the same issue. I had to clean up the XML response from listattachments before the XML node will process it correctly.
      For one, needed to get rid of the [[CDATA [ ]] pieces. For another, had to replace ATTACHMENT-TEXT to aText (maybe an issue with the hyphenated name). Works now.

      vComment = XML3690_output.LIST[0].ATTACHMENT[0].aText