#g4slkch_getUserIDFromName

  *//////////////////////////////////////////////////////////////*                 
  * #g4slkch_getUserIDFromName - Get User ID from User Name      *                 
  *                                                              *                 
  * 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:                                                     *                 
  *   User id or blank for error.                                *                 
  *                                                              *                 
  * Settable Variables ([r]=required)                            *                 
  *   id - The Slack ID to use [r]                               *                 
  *   team - The Slack Team to use [r]                           *                 
  *   user_name - The user name to use to retrieve the ID [r]    *                 
  *                                                              *                 
  *//////////////////////////////////////////////////////////////*                 
 D #g4slkch_getUserIDFromName...  
 D                 PR           256                                
 D  out_errMsg                  256    Options(*NOPASS)                                                             

#g4slk_getUserIDFromName is used retrieve the user ID using a user name.  To ensure the name is retrieved it is recommended to call #g4slkch_getUserList before calling this function.

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