Overslaan en naar de inhoud gaan

AddFormAnswerDocument()

Modified: 31 mei 2026 Viewpoint Field View Developer / API Help

The AddFormAnswerDocument() command allows the user to add a document answer to a form.

  • Quota: 10
Table 1. Parameters
ParameterTypeMax LengthRequiredDescription
apiToken string50yYour Field View API token.
formAnswerId string y The form answer ID to which the document will be added.
documentBytesstring15MByThe contents of the document.
fileNamestring255yThe file name of the document you wish to attach to the form.
Table 2. Returns
FieldTypeDescription
formAnswerIdstringIf successful, the form answer ID to which the document was added.
statussuccess or fail messageThe status of the request.

Sample request

  <AddFormAnswerDocument>
       <apiToken>F4CB1F55BB64625BD0F6A588DECB3D03F17B87F </apiToken>
       <formAnswerId>2.1845</formAnswerID>
       <documentBytes>dGVzdCBmaWxlIGNvbnRlbnRz</documentBytes>
       <fileName>test-document.txt<fileName>
</AddFormAnswerDocument>
 

Sample response

  <AddFormAnswerDocumentResponse>
   <AddFormAnswerDocumentResult>{"ID":"F1.1901","Status":{"Code":2,"Message":"Success. [ActivityId]: ccbe011c-59c9-4c8d-ae31-791905398a93"}}   </AddFormAnswerDocumentResponse>
   </AddFormAnswerDocumentResponse>
    
Indienen

Table of Contents