Before creating AODocs documents: Create test Drive folder and files

In order to have some test files and folders to work with, open up your Google Drive and create a Drive folder. Upload or create some files beside it as well as inside it.

Here’s an example of what that might look like:

drive-new-folder


drive-new-file

Folder ID

In Drive, files and folders are identified by their individual IDs. When the URL says something like /drive/folders/1HczxnMexotWE3H9z8aebZepvkla60UEzz, the long string of numbers and letters refers to the current Drive folder ID:

folder-id-in-url-1

folder-id-in-url-2

Make note of the Drive folder ID in the URL for later.

File ID

To get the URL to display the file ID of the file that’s currently open, click on the More options" menu (), then on “Open in new window”:

file-id-open-in-new-window-menu.png

Now the URL lists the Drive file ID (as opposed to folder ID):

file-id-in-ui

Note: Certain Drive files such as Google Forms require an additional step of clicking on Edit (pencil icon usually in the bottom right of the page) and open the file in yet another view. Only then does the URL display the proper file ID.

Make note of the Drive file ID: it and the AODocs document ID are the two most critical and commonly used pieces of identifying information in the AODocs API.

Note: If you’re familiar with the Drive API, the file ID is the ID of the File resource.

Next steps

Use a Drive file to create a new AODocs document with an attachment.