#g4msdrv_getID

      *//////////////////////////////////////////////////////////////*
      * #g4msdrv_getID - Get File or Folder ID                       *
      *                                                              *
      * Output:                                                      *
      *   out_errMsg - The error message (if error exists).          *
      *                                                              *
      * Returns:                                                     *
      *   blank for error, the OneDrive File/Folder ID               *
      *                                                              *
      * Settable Variables ([r]=required)                            *
      *   id - MS ID [r]                                             *
      *   search_title - The fully qualified name of the file or     *
      *    folder to search for (case sensitive) [r]                 *
      *   search_type - The type of object to search for.  Valid     *
      *    values are "folder" and "file" [r]                        *
      *   search_method - The method to use to search for the ID     *
      *    of the folder to place the file in.  The value of "net"   *
      *    will do a live search through your OneDrive structure.    *
      *    The value of "file" will use the information stored in    *
      *    the G4MSDRVPF file.  The "file" method will be faster     *
      *    but also may be out of date if you have used the          *
      *    G4MSLSTFIL command or API lately to refresh the           *
      *    information.  (net)                                       *
      *   parent_id - The id of the folder the object resides        *
      *    in                                                        *
      *   ccsid - The CCSID to use (1252)                            *
      *   debug - Turn on Debug (*NO, *YES)                          *
      *   debug_file - The debug file name.                          *
      *                 (/tmp/g4ms_[id]_listGroupsDebug.txt)         *
      *                                                              *
      *//////////////////////////////////////////////////////////////*
     D #g4msdrv_getID...
     D                 PR           256
     D  out_errMsg                  256    Options(*NOPASS)


#g4msdrv_getID will return the OneDrive File ID for the item specified

Returns:
Microsoft OneDrive File ID for the folder or file, blank for error.

Optional Parameters:
  • Error Message (output) - Error message  
Settable Variables (use #g4msdrv_setValue):
  • id (required) - Your Google ID
  • search_title - The fully qualified name of the file or folder to search for (case sensitive).
  • search_type - The type of object to search for.  Valid values are "file" for file and "folder" for folder.
  • search_method - The method to use to search for the ID of the folder to place the file in.  The value of "net"  will do a live search through your OneDrive structure. The value of "file" will use the information stored in the G4MSDRVPF file.  The "file" method will be faster but also may be out of date if you have used the G4MSLSTFIL command or API lately to refresh the information.
  • parent_id - The id of the folder that the file resides in.  This is only valid when searching for type "file".
  • 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/g4ms_[id]_listGroupsDebug.txt

Comments