#g4slkch_joinChannel

  *//////////////////////////////////////////////////////////////*       
  * #g4slkch_joinChannel - Join Channel                          *       
  *                                                              *       
  * Input:                                                       *       
  *   in_parameter (required) - The parameter name.              *       
  *   in_value (required) - The value of the parameter.          *       
  *                                                              *       
  * Output:                                                      *       
  *   out_errMsg - The error message (if error exists).          *       
  *                                                              *       
  * Returns:                                                     *       
  *   Channel ID of channel joined or blank for error.           *       
  *                                                              *       
  * Settable Variables ([r]=required)                            *       
  *   id - The Slack ID to use [r]                               *
  *   team - The Slack Team to use [r]                           *             
  *   channel - The Channel Name to Join [r]                     *             
  *   ccsid - The CCSID to use (1208)                            *             
  *   debug - Turn on Debug (*NO, *YES)                          *             
  *   debug_file - The debug file name.                          *             
  *                 (/tmp/g4g_[id]_joinChannel.txt)              *             
  *                                                              *             
  *//////////////////////////////////////////////////////////////*             
 D #g4slkch_joinChannel...                                                     
 D                 PR           256  
 D  out_errMsg                  256    Options(*NOPASS)      

#g4slk_joinChannel is used to join (or create if it does not exist) a channel on your team.

Returns:
The channel ID of the channel joined or blank for an error.

Optional Parameters:
  • Error Message (output) - Error message  
Settable Variables (use #g4slk_setValue)
  • id (required) - The Slack ID to use to join a channel.
  • team (required) The Slack Team to use to join a channel.
  • channel - The channel name to join/create.
  • ccsid - The CCSID to use.  The default is 1208.
  • debug - Specify *YES to turn on debug, or *NO to turn off debug.  The default is *NO.
  • debug_file - Specify the fully qualified file name for the main debug file.  The default is /tmp/g4slk_[id]_joinChannel.txt.
                                               
Comments