Slack - upload file from document

Description - Create a Slack file.using the input

Runtime Class - com.ibi.agents.XDXSlackFilesUploadInput


Configuration

This action requires a Generics Configuration as well as the following required parameters.

Parameter Groups

 ParameterTypeDescription
File Name:stringFilename for the file uploaded
File Type:stringSlack supported file type. If blank the type of data in the file will be intuited from the filename and the magic bytes in the file, for supported formats.

Select from one of the following options:
  • auto - Auto Detect Type
  • text - Plain Text
  • ai - Illustrator File
  • apk - APK
  • applescript - AppleScript
  • binary - Binary
  • bmp - Bitmap
  • boxnote - BoxNote
  • label {c} - C
  • csharp - C#
  • cpp - C++
  • css - CSS
  • csv - CSV
  • clojure - Clojure
  • coffeescript - CoffeeScript
  • cfm - ColdFusion
  • d - D
  • dart - Dart
  • diff - Diff
  • doc - Word Document
  • docx - Word document
  • dockerfile - Docker
  • dotx - Word template
  • email - Email
  • eps - EPS
  • epub - EPUB
  • erlang - Erlang
  • fla - Flash FLA
  • flv - Flash video
  • fsharp - F#
  • fortran - Fortran
  • gdoc - GDocs Document
  • gdraw - GDocs Drawing
  • gif - GIF
  • go - Go
  • gpres - GDocs Presentation
  • groovy - Groovy
  • gsheet - GDocs Spreadsheet
  • gzip - GZip
  • html - HTML
  • handlebars - Handlebars
  • haskell - Haskell
  • haxe - Haxe
  • indd - InDesign Document
  • java - Java
  • javascript - JavaScript/JSON
  • jpg - JPEG
  • keynote - Keynote Document
  • kotlin - Kotlin
  • latex - LaTeX/sTeX
  • lisp - Lisp
  • lua - Lua
  • m4a - MPEG 4 audio
  • markdown - Markdown (raw)
  • matlab - MATLAB
  • mhtml - MHTML
  • mkv - Matroska video
  • mov - QuickTime video
  • mp3 - mp4
  • mp4 - MPEG 4 video
  • mpg - MPEG video
  • mumps - MUMPS
  • numbers - Numbers Document
  • nzb - NZB
  • objc - Objective-C
  • ocaml - OCaml
  • odg - OpenDocument Drawing
  • odi - OpenDocument Image
  • odp - OpenDocument Presentation
  • odd - OpenDocument Spreadsheet
  • odt - OpenDocument Text
  • ogg - Ogg Vorbis
  • ogv - Ogg video
  • pages - Pages Document
  • pascal - Pascal
  • pdf - PDF
  • perl - Perl
  • php - PHP
  • pig - Pig
  • png - PNG
  • post - Slack Post
  • powershell - PowerShell
  • ppt - PowerPoint presentation
  • pptx - PowerPoint presentation
  • psd - Photoshop Document
  • puppet - Puppet
  • pythonlabel {python} - Python
  • qtz - Quartz Composer Composition
  • r - R
  • rtf - Rich Text File
  • ruby - Ruby
  • rust - Rust
  • sql - SQL
  • sass - Sass
  • scala - Scala
  • scheme - Scheme
  • sketch - Sketch File
  • shell - Shell
  • smalltalk - Smalltalk
  • svg - SVG
  • swf - Flash SWF
  • swift - Swift
  • tar - Tarball
  • tiff - TIFF
  • tsv - TSV
  • vb - VB.NET
  • vbscript - VBScript
  • vcard - vCard
  • velocity - Velocity
  • verilog - Verilog
  • wav - Waveform audio
  • webm - WebM
  • wmv - Windows Media Video
  • xls - Excel spreadsheet
  • xlsx - Excel spreadsheet
  • xlsb - Excel Spreadsheet (Binary, Macro Enabled)
  • xlsm - Excel Spreadsheet (Macro Enabled)
  • xltx - Excel template
  • xml - XML
  • yaml - YAML
  • zip - Zip
Title:stringTitle Of the file.
Comment:stringInitial comment to add to file.
Reply to message id:stringThe message id of a message to reply to.
* - denotes required
 ParameterTypeDescription
Channels:stringComma-separated list of channel names or IDs where the file will be shared.
* - denotes required
 ParameterTypeDescription
*Namespace:stringName of the special registers namespace to prepend to any created register or variable returned by the object.
* - denotes required
 ParameterTypeDescription
On Success:stringIf operation was successful, the object will return the following document type.

Select from one of the following options:
  • Status Document {status} - output status
  • Results Document {results} - output response in JSON format
  • Input Document {inputDocument} - output the input document in JSON format
On Failure:stringIf operation in unsuccessful, should the agent return the standard error document, or should it return its input?

Select from one of the following options:
  • Status Document {status} - The status document of execution.
  • Results Document {results} - The JSON results document of execution.
  • Input Document {inputDocument} - The original document passed into the object.
  • Error Document {errorDocument} - The error document produced by the object.
* - denotes required

Output Events

NameDescription
onAccountInactiveAuthentication token is for a deleted user or workspace.
onActionProhibitedthe team associated with your request has some kind of restriction
onComplianceExportsPreventDeletionCompliance exports are on, messages can not be deleted.
onFatalErrorThe server could not complete your operation(s) without encountering a catastrophic error. It's possible some aspect of the operation succeeded before the error was raised.
onInvalidAuthSome aspect of authentication cannot be validated. Either the provided token is invalid or the request originates from an IP address disallowed from making the request.
onIsArchivedChannel has been archived.
onMissingScopeAuthorization prived does not have the required scope for the request. See Slack results JSON key "needed".
OnMessageTooLongMessage text is too long
onNoPermissionThe workspace token used in this request does not have the permissions necessary to complete the request. Make sure your app is a member of the conversation it's attempting to post a message to.
onNotAuthorizedNo authentication token provided.
onLoginRequiredThe workspace is undergoing an enterprise migration and will not be available until migration is complete.
onRateLimitedApplication has posted too many messages, read 'https://api.slack.com/docs/rate-limits' documentation for more information
onRequestTimeoutThe method was called via a POST request, but the POST data was either missing or truncated.
onRestrictedActionWorkspace preference prevents the authenticated user from posting.
onRollupErrorrolluop_error
onTeamAddedToOrgThe workspace associated with your request is currently undergoing migration to an Enterprise Organization. Web API and other platform operations will be intermittently unavailable until the transition is complete.
onTokenRevokedAuthentication token is for a deleted user or workspace or the app has been removed.
onTooManyAttachmentsToo many attachments were provided with this message. A maximum of 100 attachments are allowed on a message.
onUserNotFoundthe user used in your request does not actually exist.
onFailInitializationXDXSlack agent initialization error occurred.
onFailConnectCould not connect to the external system.
onFailNhttpErrorOccurredfail_nhttp_error_occurred
onFailSlackRequestProcessingAn error occurred while processing the Slack request.
onFailSlackResponseProcessingAn error occurred while processing the Slack response.
onFileDeletedFile id passed is deleted.
onFileNotFoundFile id passed was not found.
onInvalidNameSpecialsThe Value passed for name contained disallowed special characters or upper case characters. Conversation names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 21 characters or less.
onInvalidUsersAt least one of the values passed for user_ids was empty or invalid.
onUserIsBotThis method cannot be called by a bot user.
onUserIsUltraRestrictedThis method cannot be called by a single channel guest.