{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":47283,"path":"servicenow-platform/document-management-services/google-drive-spoke-document-services.md","title":"Document Services Framework for Google Drive","bundle":null,"doc_type":null,"release":"australia","body":"\n# Document Services Framework for Google Drive\n\nIntegrate the Document Services with Google Drive.\n\n## Request apps on the Store\n\nVisit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the [ServiceNow Store version history release notes](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html).\n\n## Integration Hub subscription\n\nThis spoke requires an Integration Hub subscription. For more information, see [Legal schedules - IntegrationHub overview](https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/legal/snc-addendum-integrationhub.pdf).\n\n## Supported versions\n\nThis Spoke was built for Document Services Framework V1.0, but may be compatible with Utah and later versions.\n\n## Key features\n\nDocument Services Framework for Google Drive enables a flow designer to:\n\n-   Upload the document to Google Drive\n-   Collaborate\n-   Manage versions\n-   Download documents\n\n## Spoke requirements\n\n-   [Google Drive Spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/googledrive-spoke.md)\n-   [Google Directory Spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/gdirectory-spoke.md)\n-   [Google Docs Spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/gdocs-spoke.md)\n\n## Spoke dependencies\n\nIf you’re having trouble installing the app, verify that these dependent plugins are installed:\n\n-   IHUB Spoke Util Pack \\(com.snc.ihub\\_spoke\\_util\\_pack\\)\n-   Multi Provider Document Services Framework \\(com.snc.multiprovider\\_documents\\)\n-   Remote Directory Sync \\(com.snc.remote\\_directory\\_sync\\)\n-   ServiceNow Flow Designer - Dynamic Inputs \\(com.glide.hub.dynamic\\_inputs\\)\n-   ServiceNow IntegrationHub Action Step - REST \\(com.glide.hub.action\\_step.rest\\)\n-   ServiceNow IntegrationHub Runtime \\(com.glide.hub.integration.runtime\\)\n\n**Note:** Some of these plugins are licensable features and require appropriate licenses, if used outside the spoke implementation.\n\n## Spoke subflows\n\nThe Document Services Framework for Google Drive provides sample subflows to demonstrate automating Google Drive tasks for My Drive and Shared drives. To customize a sample subflow, copy it to a new application scope. Available sample subflows include:\n\n<table id=\"table_gqt_zng_yxb\"><thead><tr><th>\n\nSubflow\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nCreate Document\n\n</td><td>\n\nCopies the document to Google Drive and creates a record in the Documents table with the folder ID and created version in Version table under Multi Provider Documents.\n\n</td></tr><tr><td>\n\nCreate Document V1\n\n</td><td>\n\nCopies the document to Google Drive and creates a record in the Documents table with shareable folder URL and created version in Version table under Multi Provider Document Services Framework Documents.\n\n **Note:** For shared drive copy the URL and the URL should be in the below the format and anything in between drive and folder needs to be removed while copying the URL.\n\nhttps://drive.google.com/drive/folders/&lt;folder ID&gt;\n\n</td></tr><tr><td>\n\nCreate Group\n\n</td><td>\n\nCreates a group as specified in Google Drive and updates the Permission Configurations table under Multi Provider Documents.\n\n</td></tr><tr><td>\n\nAdd Collaborator To Group\n\n</td><td>\n\nGiven a Group ID from Google Drive, this subflow will add the given collaborator as specified by role.\n\n</td></tr><tr><td>\n\nCollaborate Document\n\n</td><td>\n\nAdds a permission to a given user, group or domain, or to anyone, for a file. This permission is based on a permission type and role and is how collaboration is configured in Google Drive. If **User** or **Group** is selected, the email address is required for those users and groups. If **Domain** is selected, the domain name to create permission for is required. If **Anyone** is selected, then anyone has permission to the file or folder.\n\n</td></tr><tr><td>\n\nConnect Document From Google Drive Using ID\n\n</td><td>\n\nConnects the Google Drive document using the ID and can be tracked under Multi Provider Document Services Framework documents\n\n</td></tr><tr><td>\n\nConnect Document From Google Drive V1\n\n</td><td>\n\nConnects the Google Drive document using the shareable URL for the document and can be tracked under Multi Provider Document Services Framework documents.\n\n</td></tr><tr><td>\n\nCopy Google Drive Document Version\n\n</td><td>\n\nCopies the document with the given version from Google Drive to an attachment in ServiceNow.\n\n</td></tr><tr><td>\n\nDelete Document\n\n</td><td>\n\nDeletes the document in Google Drive and remove its corresponding records in documents and versions tables.\n\n</td></tr><tr><td>\n\nDelete Document Version\n\n</td><td>\n\nDeletes the document in Google Drive and remove its corresponding records in documents and version tables.\n\n</td></tr><tr><td>\n\nGet All Document Versions\n\n</td><td>\n\nGets all the document versions from Google Drive and creates or updates records in the Versions table under Multi Provider Documents.\n\n</td></tr><tr><td>\n\nGet Document From Google Drive\n\n</td><td>\n\nCopies the document from Google Drive to the Document Name referred by creating a record in the documents table and all its versions in the Versions table under Multi Provider Documents.\n\n</td></tr><tr><td>\n\nGet Document Latest URL\n\n</td><td>\n\nConstructs the web view URL and web edit URL for the file by verifying if the file actually exists in Google Drive. Consuming APIs are required to verify if the file is present or not.\n\n</td></tr><tr><td>\n\nGet Oldest Document Version\n\n</td><td>\n\nReturns the oldest version of the document.\n\n</td></tr><tr><td>\n\nReconnect Document From Google Drive\n\n</td><td>\n\nReconnects the Google Drive document that can be tracked under Multi Provider Documents.\n\n</td></tr><tr><td>\n\nSync Collaborator\n\n</td><td>\n\nSyncs all Google Drive users in a domain with the Collaborators table under Multi Provider Documents.\n\n</td></tr><tr><td>\n\nUpdate Document Content\n\n</td><td>\n\nUpdates the document with the attached content in Google Drive corresponding with the document ID from table Multi Provider Documents sys\\_id.\n\n</td></tr></tbody>\n</table>## Spoke actions\n\nThe Document Services Framework for Google Drive provides actions to automate Document Services tasks when events occurs in your ServiceNow instance. Available actions include:\n\n<table id=\"table_iqt_zng_yxb\"><thead><tr><th>\n\nAction\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nDelete document and versions\n\n</td><td>\n\nDeletes the specified document along with versions from Multi Provider document and versions table.\n\n</td></tr><tr><td>\n\nLook Up Incremental Files and Folders\n\n</td><td>\n\n-   Returns a list of Google Drive files and folders under the given folder ID.\n-   Retrieves the list of files and folders based on the given search query. Hierarchical search is not supported.\n\n**Note:** Search results may vary due to Google Drive 's indexing behavior.\n\n\n</td></tr><tr><td>\n\nLook Up Files and Folders Stream\n\n</td><td>\n\nRetrieves the list of files and folders under the given folder.\n\n</td></tr><tr><td>\n\nCopy File Revision as Attachment\n\n</td><td>\n\nCopies the given Revision ID for a File ID to any record in ServiceNow.\n\n</td></tr><tr><td>\n\nDelete document version\n\n</td><td>\n\nDeletes the specified versions of a document from Multi Provider document versions table.\n\n</td></tr><tr><td>\n\nLook Up Target Record Existence\n\n</td><td>\n\nChecks for the existence of the target record in the specified target table.\n\n</td></tr><tr><td>\n\nCopy Doc File to Attachment\n\n</td><td>\n\nCopies the Google doc file toServiceNow as an attachment.\n\n</td></tr><tr><td>\n\nCopy Doc Revision as Attachment\n\n</td><td>\n\nCopies the given revision ID for a Google document file ID to any record in ServiceNow.\n\n</td></tr><tr><td>\n\nGet File Type Info\n\n</td><td>\n\nReturns the file type and information for the input mime-type.\n\n</td></tr></tbody>\n</table>## Connection and credential alias requirements\n\nIntegration Hub uses aliases to manage connection and credential information, and OAuth credentials. Using an alias eliminates the need to configure multiple credentials and connection information profiles when using multiple environments. If the connection or credential information changes, you don't need to update any actions that use the connection.\n\nFor information about setting up the spoke, see [Set up Document Services framework for Google Drive](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/document-management-services/setup-gdrive-spoke-document-services.md).\n\n\n\n**Parent Topic:**[Google Drive integration with Document Services](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/document-management-services/google-drive-integration.md)\n\n"}}