#g4slkch_getChannelID

  *//////////////////////////////////////////////////////////////*        
  * #g4slkch_getChannelID - Get Channel ID                       *        
  *                                                              *        
  * 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 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 retrieve the ID for [r]      *        
  *                                                              *        
  *//////////////////////////////////////////////////////////////*        
 D #g4slkch_getChannelID...                                                           
 D                 PR           256                                     
 D  out_errMsg                  256    Options(*NOPASS)                 

#g4slk_getChannelID is used retrieve the channel ID of a channel using the channel's name. To ensure the name is retrieved it is recommended to call #g4slkch_getChannelList before calling this function.

Returns: The channel ID 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 retrieve the channel id.
  • team (required) The Slack Team to use to retrieve the channel id.
  • channel (required) - The channel name to retrieve the channel ID for.