Back to Kinetic Platform Integrations
Handler · Version 2

Kinetic Request CE Attachment Create Kinetic Platform

Download GitHub

About

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']%>}

Configurations
Name Description Sample
api_server Kinetic Request CE API Web Application http://server:port/kinetic
api_username Username for an account that has permission to use the API
api_password Password for the API user *********
space_slug The space slug (can also be set as a parameter).
enable_debug_logging Enable debug logging if the value is set to 'Yes'. No
Parameters
Name Description Sample
Error Handling Determine what to return if an error is encountered. Raise Error
Space Slug The space to upload the newly created file to (defaults to info value if not provided). catalog
Kapp Slug The kapp to upload the newly created file to. acme
Form Slug The form to upload the newly created file to. attachment-form
Filename The name of the file to create. hello-world.txt
File Content The content for the file being created. Hello World! This is a sample file!
Input Encoding This parameter specifies file content input is encoded to. Plain
Results
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 submitted as an attachment question value for a Submission Create call.
Changelog

Kinetic Request CE Attachment Create V2 (2021-05-27)

  • Added the ability to accept Base 64 input.

Kinetic Request CE Attachment Create V1.2 (2018-05-25)

  • API Server Info Value changed to allow ${space} in the url for subdomain support (ie. https://${space}.localhost:8080/kinetic)

Kinetic Request CE Attachment Create V1.1 (2017-11-21)

  • Name changed from Create Attachment to Attachment Create to match handler naming conventions

Kinetic Request CE Attachment Create V1 (2016-11-04)

  • Initial version. See README for details.
Download GitHub

On This Page

Other Versions

Looking for a workflow engine? Learn more about the Kinetic Data Enterprise Workflow Platform. Check it out
Return to Top