I am storing a document ID as an integer in a CDT, and I have a link in an inter

I am storing a document ID as an integer in a CDT, and I have a link in an interface so that a user can download that document. However, in order to link to the correct document, I have to add 1 to the document ID number to get the correct document. Meaning that if the CDT stores a value of 10, the actual document ID is 11. Does anyone know where the discrepancy comes from? I'm not manipulating the value when it is uploaded in the original interface or in the process model, just storing it.

OriginalPostID-162734

OriginalPostID-162734

  Discussion posts and replies are publicly visible

Parents
  • On a sail form, if you try to save a document ID directly into a CDT, it only returns a temporary document ID, which ends up being something along the lines of (actual document ID - numDocumentsStored) off for each document ID.

    A workaround is to set the document name before the user input task, and then afterwards save the document into the CDT (via another script task) by getting the document by its name that you previously set.
Reply
  • On a sail form, if you try to save a document ID directly into a CDT, it only returns a temporary document ID, which ends up being something along the lines of (actual document ID - numDocumentsStored) off for each document ID.

    A workaround is to set the document name before the user input task, and then afterwards save the document into the CDT (via another script task) by getting the document by its name that you previously set.
Children
No Data