Skip to main content

IMPORTANT - Product End of Life Statement - IMPORTANT

Request RE, Survey, and Calendar 1.5 Support Ending December 31, 2020
Contact Kinetic Data Support with Questions
Kinetic Community

Kinetic Request CE Attachment Create

Creates a plaintext attachment and uploads it to a Kinetic Request CE Form.


By downloading this file, you acknowledge that you agree to our Terms of Service

Detailed Description

This handler create a plaintext attachment and uploads it to a Kinetic Request CE form. The file is created using the Filename and File Content input parameters and is then passed to the specified form using the Content Type of text/plain. If the file is successfully uploaded, the handler will return a JSON file string that will be most likely used in conjunction with the Kinetic Request CE Submission Create handler. The JSON Files response should be passed directly to the Sumbission Create call as a part of the values object for the attachment question on the form. An example of using this handlers result is below (where "Upload Attachment" is the label for the attachment field on the form).

{"Upload Attachment" : <%=@results['kineticrequestcecreateattachment_v1']['Files']%>}


Name Description
Error Handling Determine what to return if an error is encountered.
Space Slug The space to upload the newly created file to (defaults to info value if not provided).
Kapp Slug The kapp to upload the newly created file to.
Form Slug The form to upload the newly created file to.
Filename The name of the file to create.
File Content The content for the file being created.

Sample Configuration

Parameter Example Configuration
Error Handling Raise Error
Space Slug catalog
Kapp Slug acme
Form Slug attachment-form
Filename hello-world.txt
File Content Hello World! This is a sample file!


Name Description
Handler Error Message Error message if an error was encountered and Error Handling is set to "Error Message".
Files The JSON response that is returned from Kinetic Request CE after uploading a file. This will the text that should be submited as an attachment question value for a Submission Create call.

Change Log

Version Date Description
1.2 2018-05-25 * API Server Info Value changed to allow ${space} in the url for subdomain support (ie. https://${space}.localhost:8080/kinetic)
1.1 2017-11-21 * Name changed from Create Attachment to Attachment Create to match handler naming conventions
1 2016-11-04 * Initial version. See README for details.