Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28049

Can't specify toAppendDocIDsVarName param to PDF.MergeFromDocs from automation or API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.10-HF13
    • Fix Version/s: None
    • Component/s: Automation, Rest API

      Description

      The PDF.MergeFromDocs operation takes a param "toAppendDocIDsVarName" to "append the blobs stored in the docs whose IDs are passed in". The value of this Context variable needs to be of type "String[]", but how can you specify this from an automation chain, an automation script, or via the API (including API Playground, etc.)?

      A javascript array variable throws the error:  "Failed to invoke operation PDF.MergeWithDocs, class java.util.ArrayList is not a String[]".

      A possible workaround is to use an automation script with the "PDF.MergeWithBlobs" operation, but you have to manually get the blob for the input document, and the doc and blob for each id that you pass in as a parameter. (Example available on request.)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.