3 Replies Latest reply on Jun 25, 2020 9:52 AM by Shane Smith

    Download attachment in a Work Order using "Get Entries" process

    Sujay Sanglikar
      Share This:

      Hello,

       

      I am trying to download attachment in a Work Order using "Get Entries" process.

       

      I have mapped a shared location and provided the folder path in Adapter configuration.

       

      Download attachments flag is set to "true".

       

      Retrieve attachments in response set to "false".

       

      I am providing below XML as input for the field "Requested Fields"

       

      <request-data>

        <remedy-action>

          <schema>WOI:WorkOrder</schema>

          <query>'Work Order ID'="<work order number>"</query>

          <fields>

            <field>z1D_AttachmentCount</field>

            <field>z2AF_Work Log01</field>

            <field>z2AF_Work Log02</field>

            <field>z2AF_Work Log03</field>

          </fields>

        </remedy-action>

      </request-data>

       

      I'm getting the below error:

      <response-data> <metadata> <status>error</status> <error>Error occured performing remedy action: Message[summary=Fields are missing in query for data from Remedy schema 'WOI:WorkOrder'., detail=Fields are missing in query for data from Remedy schema 'WOI:WorkOrder'.]</error> </metadata> </response-data>

       

      Please let me know if this is the correct approach.

       

      Request inputs.

       

      Thanks.

      Sujay